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

_______________________________________________
squid-dev mailing list
[email protected]
http://lists.squid-cache.org/listinfo/squid-dev

Reply via email to