Using VisualStudio 2017 (15.6.4). When compiling in x64: #define MY_LOG(_log, _sev) BOOST_LOG_SEV( _log, _sev) \ << boost::log::add_value("SrcLine", __LINE__) \ << boost::log::add_value("SrcFile", __FILE__) the following doesn't work: strm << boost::log::extract< int >("SrcLine", rec) << ": "; boost::log::value_ref< std::string > fullpath = boost::log::extract< std::string >("SrcFile", rec); strm << boost::filesystem::path(fullpath.get()).filename().string() << ": "; while the following works: strm...
Using VisualStudio 2017 (15.6.4). When compiling in x64: #define MY_LOG(_log, _sev) BOOST_LOG_SEV( _log, _sev) \ << boost::log::add_value("SrcLine", __LINE__) \ << boost::log::add_value("SrcFile", __FILE__) the following doesn't work: strm << boost::log::extract< int >("SrcLine", rec) << ": "; boost::log::value_ref< std::string > fullpath = boost::log::extract< std::string >("SrcFile", rec); strm << boost::filesystem::path(fullpath.get()).filename().string() << ": "; while the following works: strm...