20 May
2016
20 May
'16
11:49 p.m.
since the Test library broke backwards compatibility with 1.59, my code will no longer compile on versions earlier than 1.59.
Which specific part?
The boost::unit_test::make_test_case() function got some extra parameters. I guess I could use #ifdefs and have two different versions of the function call, but that does get messy quickly.
This is actually not that difficult it seems. In one translation unit define BOOST_TEST_MODULE and use inlined header:
#define BOOST_TEST_MODULE single header multiunit test #include
in all other translation units just do this:
#include
Oh that looks easy, I will try that! Many thanks, Cheers, Adam.