Subject: [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-13 09:30:24
#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
Keywords: |
----------------------------------------+-----------------------------------
In our project we want to compile all code with -Wold-style-cast and treat
warnings as errors. We pass the boost/include directory with -isystem to
gcc. This keeps warnings from boost from obfuscating our build output.
However if a macro from constains warnings we still get them.
BOOST_CLASS_VERSION uses BOOST_MPL_ASSERT which causes the warning. I
changed the old style casts to c++ casts in the macro's from
boost/mpl/assert.hpp.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6551> 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