Re: [Boost-bugs] [Boost C++ Libraries] #6551: BOOST_CLASS_VERSION emits use of old-style cast when compiling with -Wold-style-cast

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6551: BOOST_CLASS_VERSION emits use of old-style cast when compiling with -Wold-style-cast
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-02-14 08:17:52


#6551: BOOST_CLASS_VERSION emits use of old-style cast when compiling with -Wold-
style-cast
-----------------------------------------+----------------------------------
  Reporter: andre.kwakernaak@… | Owner: agurtovoy
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: mpl
   Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords:
-----------------------------------------+----------------------------------

Comment (by Ulrich Eckhardt <ulrich.eckhardt@…>):

 Two things:
 1. That should be a static_cast, not a reinterpret_cast.
 2. I wonder if instead of casting a null to an according function pointer
 type, it would be possible to tell assert_arg explicitly like
 {{{assert_arg<void (*)(Pred)>(0, ...)}}} and then rely on the conversion
 of 0 to the according type to do the right thing.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6551#comment:1>
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:09 UTC