fork download
  1. #include <boost/log/sources/severity_channel_logger.hpp>
  2.  
  3. int main () {
  4. boost::log::sources::severity_channel_logger_mt<const char*, int> logger;
  5. BOOST_LOG_STREAM_CHANNEL_SEV(logger, 0, "");
  6. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
In file included from prog.cpp:1:
prog.cpp: In function ‘int main()’:
prog.cpp:5:2: error: no match for call to ‘(const type {aka const boost::parameter::aux::tagged_argument<boost::log::v2s_mt_posix::keywords::tag::channel, const int>}) (const type)’
  BOOST_LOG_STREAM_CHANNEL_SEV(logger, 0, "");
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.cpp:5:2: error: ‘BOOST_LOG_STREAM_WITH_PARAMS’ was not declared in this scope
  BOOST_LOG_STREAM_CHANNEL_SEV(logger, 0, "");
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.cpp:5:2: note: suggested alternative: ‘BOOST_LOG_STREAM_CHANNEL’
stdout
Standard output is empty