Subject: [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-09-24 17:22:27
#3485: Boost 1.40 Example.cpp program produces pages of MSVC level 1 warning 4180
----------------------------+-----------------------------------------------
Reporter: pbristow | Owner: dave
Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: Getting Started Guide
Version: Boost 1.40.0 | Severity: Cosmetic
Keywords: warning lambda |
----------------------------+-----------------------------------------------
Compiling... Getting started example.cpp
example.cpp
I:\boost_trunk\boost/lambda/detail/lambda_functors.hpp(140) : warning
C4180: qualifier applied to function type has no meaning; ignored
I:\boost_trunk\boost/lambda/detail/lambda_functor_base.hpp(172) :
see reference to class template instantiation
'boost::lambda::lambda_functor<T>' being compiled
with
[
T=boost::lambda::identity<const int>
]
...
with
[
T=boost::lambda::lambda_functor_base<boost::lambda::arithmetic_action<boost::lambda::multiply_action>,boost::tuples::tuple<boost::lambda::lambda_functor<boost::lambda::placeholder<1>>,const
int,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type>>
This is harmless but doesn't get newbies off to an encouraging start!
I would be *much* nicer to have this warning (MSVC level 1) removed or
quieted in lambda.
But it is not obvious to me how to do this - adding disable for the
existing warning supression does not quiet the warning.
#pragma warning (disable : 4180) as the first line does work.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3485> 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