Subject: [Boost-bugs] [Boost C++ Libraries] #10324: Fix for const-cast warning
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-08-08 03:50:48
#10324: Fix for const-cast warning
------------------------------+---------------------------
Reporter: harris.pc@⦠| Owner: samuel_krempp
Type: Bugs | Status: new
Milestone: To Be Determined | Component: format
Version: Boost 1.56.0 | Severity: Problem
Keywords: |
------------------------------+---------------------------
I see this warning in GCC 4.7.2, using Boost 1.56.0
boost/format/feed_args.hpp|121 col 9| warning: cast from type âconst
void*â to type âboost::remove_reference<long unsigned int>::type* {aka
long unsigned int*}â casts away qualifiers [-Wcast-qual]
boost/format/feed_args.hpp|126 col 9| warning: cast from type âconst
void*â to type âlong unsigned int*â casts away qualifiers [-Wcast-qual]
I've made a simple change to the code that avoids these warnings - please
see attached patch.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10324> 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:16 UTC