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

Subject: Re: [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 15:16:00


#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
Resolution: | Keywords: format C2442
--------------------------------------+-------------------------------------

Comment (by steven_watanabe):

 Here's a smaller test case:

 {{{
 #include <boost/bind.hpp>
 #include <boost/format.hpp>
 }}}

 This produces warnings with /Za /W4 on MSVC 2008 and 2010.

 The problem reduces to

 {{{
 namespace boost {

 template<int I>
 class arg {};

 namespace io {

 class test {
     int operator()(const int & arg) { return arg; }
 };

 }
 }
 }}}

 Frankly, this is just broken. I suggest that you just disable the warning
 or don't use /Za.

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