[Boost-bugs] [Boost C++ Libraries] #4527: warning in Boost.format and Boost.test C4224

Subject: [Boost-bugs] [Boost C++ Libraries] #4527: warning in Boost.format and Boost.test C4224
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-08-11 11:36:24


#4527: warning in Boost.format and Boost.test C4224
-------------------------------------+--------------------------------------
 Reporter: pbristow | Owner: samuel_krempp
     Type: Bugs | Status: new
Milestone: Boost 1.44.0 | Component: format
  Version: Boost Development Trunk | Severity: Cosmetic
 Keywords: format C2442 |
-------------------------------------+--------------------------------------
 Creates a blizzard of C2442 warnings when called from Boost.Test.

 I:\boost_1_43_0\boost/format/alt_sstream.hpp(128): warning C4224:
 nonstandard extension used : formal parameter 'arg' was previously defined
 as a type
           I:\boost_1_43_0\boost/format/alt_sstream.hpp(145) : see
 reference to class template instantiation
 'boost::io::basic_oaltstringstream<Ch,Tr,Alloc>::No_Op' being compiled
           with
           [
               Ch=char,
               Tr=std::char_traits<char>,
               Alloc=std::allocator<char>
           ]

 Problem is in class basic_oaltstringstream

 template<class T>
                 const T & operator()(const T & arg) { return arg; }

 This trivial change of name from "arg" to "arg1" cures it.

 template<class T> const T & operator()(const T & arg1) { return arg1; }

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4527>
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:04 UTC