Re: [Boost-bugs] [Boost C++ Libraries] #3485: Boost 1.40 Example.cpp program produces pages of MSVC level 1 warning 4180

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3485: Boost 1.40 Example.cpp program produces pages of MSVC level 1 warning 4180
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-04 18:40:35


#3485: Boost 1.40 Example.cpp program produces pages of MSVC level 1 warning 4180
-----------------------------------+----------------------------------------
  Reporter: pbristow | Owner: dave
      Type: Bugs | Status: reopened
 Milestone: Boost 1.42.0 | Component: Getting Started Guide
   Version: Boost Release Branch | Severity: Cosmetic
Resolution: | Keywords: warning lambda
-----------------------------------+----------------------------------------

Comment(by pbristow):

 Replying to [comment:5 steven_watanabe]:
> The beta appears to be okay too, even using the IDE instead of bjam to
 build.

 This is bizarre. I have also reported some similar 4180 warnings in
 boost::math which John could not reproduce despite having a test .cpp
 program from me.

 But I have just tried again enabling MS extensions = no and the warnings
 disappear.

 So disabling MS extensions = Yes (/Za) provokes the warnings!

 But John has removing the complained-about const s (from trunk) and my
 test now compiles free of warnings from boost::math - but with some still
 from Fusion.

 I am unclear if the addition of const to a function is actually prohibited
 by the C++ Standard, and indeed why const has been added by Joel and John
 - who are not novices ;-)

 So I feel that removing the consts is preferred but disabling the warning
 would be second best.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3485#comment:6>
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:01 UTC