Latest Boost.Test version broke runtime_config::get

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Latest Boost.Test version broke runtime_config::get

Boost - Users mailing list
Hi everyone,

version 1.69 of boost.test broke the line
  runtime_config::get<log_level>(runtime_config::btrt_log_level)
It works with static linking, however it breaks on dynamic linking. Error message is
  boost::runtime::arg_type_mismatch: Access with invalid type for argument corresponding to parameter log_level
In particular the following program fails:
  #define BOOST_TEST_MODULE example
  #define BOOST_TEST_DYN_LINK
  #include <iostream>
  #include <boost/test/unit_test.hpp>
  #include <boost/test/unit_test_parameters.hpp>

  BOOST_AUTO_TEST_CASE(failDyn)
  {
      using namespace boost::unit_test;
      std::cout << runtime_config::get<log_level>( runtime_config::btrt_log_level ) <<    std::endl;
  }
if boost.test is linked dynamically.
Best regards,

David Sommer

_______________________________________________
Boost-users mailing list
[hidden email]
https://lists.boost.org/mailman/listinfo.cgi/boost-users