Boost logo

Boost Users :

Subject: [Boost-users] Latest Boost.Test version broke runtime_config::get
From: David Sommer (david97sommer_at_[hidden])
Date: 2019-02-05 08:23:51

Hi everyone,

version 1.69 of boost.test broke the line
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 list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at