Re: [Boost-bugs] [Boost C++ Libraries] #4538: Warning: dereferencing type-punned pointer will break strict-aliasing rules

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4538: Warning: dereferencing type-punned pointer will break strict-aliasing rules
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-03-23 07:37:24


#4538: Warning: dereferencing type-punned pointer will break strict-aliasing rules
---------------------------------------------+------------------------------
  Reporter: Roland Bock <rbock@…> | Owner: danieljames
      Type: Bugs | Status: new
 Milestone: Boost 1.44.0 | Component: function
   Version: Boost 1.44.0 | Severity: Problem
Resolution: | Keywords:
---------------------------------------------+------------------------------

Comment (by sergey.belyashov@…):

 May be safer is to replace reinterpret_cast<functor_type*>(something) by
 static_cast<functor_type*>(static_cast<void*>(something))?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4538#comment:4>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC