Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10459: boost::log::v2_mt_nt5::aux::record_pump: function marked as __forceinline not inlined
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-09-05 08:58:01
#10459: boost::log::v2_mt_nt5::aux::record_pump: function marked as __forceinline
not inlined
-------------------------------+---------------------
Reporter: r.korthaus@⦠| Owner: andysem
Type: Bugs | Status: closed
Milestone: To Be Determined | Component: log
Version: Boost 1.56.0 | Severity: Problem
Resolution: wontfix | Keywords:
-------------------------------+---------------------
Comment (by r.korthaus@â¦):
Disabled this warning successfully for our Visual Studio project now,
which is ok as we do not use _forceinline anywhere in our code.
Nevertheless attached is a minimal example that triggers the warning in a
freshly generated Visual Studio 2013 project (for the record):
{{{
#include <stdio.h>
#include <tchar.h>
#include <boost/log/common.hpp>
#include <boost/log/trivial.hpp>
int _tmain(int argc, _TCHAR* argv[])
{
boost::log::sources::severity_channel_logger_mt<
boost::log::trivial::severity_level > logger;
BOOST_LOG_CHANNEL_SEV( logger, "A Channel Name",
boost::log::trivial::fatal ) << "fatal error";
return 0;
}
}}}
The warning is triggered by the use of BOOST_LOG_CHANNEL_SEV:
{{{
>...\boost_1_56_0\include\boost/smart_ptr/intrusive_ptr.hpp(182): warning
C4714:
"boost::log::v2s_mt_nt5::aux::record_pump<boost::log::v2s_mt_nt5::sources::severity_channel_logger_mt<boost::log::v2s_mt_nt5::trivial::severity_level,std::string>>
boost::log::v2s_mt_nt5::aux::make_record_pump<boost::log::v2s_mt_nt5::sources::severity_channel_logger_mt<boost::log::v2s_mt_nt5::trivial::severity_level,std::string>>(LoggerT
&,boost::log::v2s_mt_nt5::record &)", function marked as __forceinline not
inlined
1> with
1> [
1>
LoggerT=boost::log::v2s_mt_nt5::sources::severity_channel_logger_mt<boost::log::v2s_mt_nt5::trivial::severity_level,std::string>
1> ]
1>
...\boost_1_56_0\include\boost/log/sources/record_ostream.hpp(292): See
declaration of 'boost::log::v2s_mt_nt5::aux::make_record_pump'
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10459#comment:2> 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