Subject: [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-04 16:12:26
#10459: boost::log::v2_mt_nt5::aux::record_pump: function marked as __forceinline
not inlined
------------------------------+---------------------
Reporter: r.korthaus@⦠| Owner: andysem
Type: Bugs | Status: new
Milestone: To Be Determined | Component: log
Version: Boost 1.56.0 | Severity: Problem
Keywords: |
------------------------------+---------------------
boost/log/sources/record_ostream.hpp(291): warning C4714:
'boost::log::v2_mt_nt5::aux::record_pump': function marked as
__forceinline not inlined
This is generated with MSVC12 warning level 4. Compiling with treat
warnings as error is problematic.
Attached a fix that disables _forceinline for MSVC:
{{{
template< typename LoggerT >
#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1800))
record_pump< LoggerT > make_record_pump( LoggerT& lg, record& rec )
#else
BOOST_FORCEINLINE record_pump< LoggerT > make_record_pump(LoggerT& lg,
record& rec)
#endif
{
return record_pump< LoggerT >(lg, rec);
}
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10459> 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