
10 Mar
2011
10 Mar
'11
6:05 p.m.
On Thursday 10 March 2011 09:59:35 Peter Dimov wrote:
"KSpam" wrote:
This has been a known problem for a very long time, and the work around is quite simple. Replace
reinterpret_cast
(&in_buffer.data)->~Functor(); with
functor_type* p = reinterpret_cast
(&in_buffer.data); p->~Functor(); Note however that this replacement causes a warning on MSVC ('p' not used), so it needs to be conditional, as in
I have run my patch on MSVC (8, 9, and 10) and GCC, and I do not recall seeing warnings from MSVC. Isn't p being used to call the destructor?
Is there a ticket?
I do not know. Respectfully, Justin