[squid-dev] [PATCH] TidyPointer removal

Amos Jeffries squid3 at treenet.co.nz
Fri Jul 8 10:11:32 UTC 2016


On 8/07/2016 6:44 p.m., Amos Jeffries wrote:
> On 8/07/2016 11:24 a.m., Alex Rousskov wrote:
>>
>>>  typedef void* SessionPtr;
>>> +CtoCpp1(xfree, SessionPtr);
>>
>> xfree() is already a C++ function and does not need wrapping, right?
>>
> 
> Hmm. Yes, I'll give it a try.
> 

It seems the answer is no.

"
src/security/Session.h:53:39: error: could not convert template argument
‘xfree’ to ‘void (*)(void*)’
 typedef LockingPointer<void, xfree, -1> SessionPointer;
"

I believe its failing due to being an inline. I had similar errors the
other day when attempting to use an inline wrapper to resolve
'incomplete type' errors about gnutls_free.

Amos



More information about the squid-dev mailing list