boost::bind breaks strict-aliasing rules?
Posted
by Kyle
on Stack Overflow
See other posts from Stack Overflow
or by Kyle
Published on 2010-06-15T02:21:24Z
Indexed on
2010/06/15
2:22 UTC
Read the original article
Hit count: 362
Using Boost 1.43 and GCC 4.4.3, the following code
boost::bind(&SomeObject::memberFunc, this, _1));
Generates the following warning
boost/function/function_base.hpp:321: warning: dereferencing type-punned pointer will break strict-aliasing rules
What's the correct way to eliminate these warnings without setting -fno-strict-aliasing?
© Stack Overflow or respective owner