
12 Aug
2010
12 Aug
'10
12:26 a.m.
Roland, On Wednesday 11 August 2010 01:37:17 Roland Bock wrote:
leads to a long warning message (second attachment), culminating in
boost/1.44/include/boost/function/function_base.hpp:321: warning: dereferencing type-punned pointer will break strict-aliasing rules boost/1.44/include/boost/function/function_base.hpp:325: warning: dereferencing type-punned pointer will break strict-aliasing rules
This warning can be prevented by splitting the line into two lines as follows: Replace: reinterpret_cast<functor_type*>(&in_buffer.data)->~Functor(); with: functor_type* p = reinterpret_cast<functor_type*>(&in_buffer.data); p->~Functor(); I patched my local version of Boost in order to prevent these warnings. Hope This Helps, Justin