
"Chad Maron" <cmaron@logicworks.net> wrote in message news:82DA1BC8E3377840AAC2B22ACFAB1EE437FD4CF5@exchange3.corp.logicworks.net...
Hey all,
I have some code that is essentially doing what is suggested on the Parameterized free function based test case page (http://www.boost.org/libs/test/doc/components/utf/components/test_case/param...).
This technique worked fine in 1.33.1 but in 1.34 I get the following error when I try to compile my test:
Test.cpp: In constructor 'sub_test_suite::sub_test_suite(boost::shared_ptr<Tester>)': Test.cpp:98: error: no matching function for call to 'boost::unit_test::test_suite::test_suite()' /usr/local/include/boost-1_34/boost/test/impl/unit_test_suite.ipp:110: note: candidates are: boost::unit_test::test_suite::test_suite(boost::unit_test::const_string) /usr/local/include/boost-1_34/boost/test/unit_test_suite_impl.hpp:116: note: boost::unit_test::test_suite::test_suite(const boost::unit_test::test_suite&)
Above error has nothing to do with BOOST_PARAM_TEST_CASE
I understand the reason for the error but I am not sure about what to do
The reason is that test_suite is not default constractible.
. Is there a new technique for using BOOST_PARAM_TEST_CASE to ensure the parameters are not destroyed until the test case is run?
Please provide a simple examples that fails. Genandiy