$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Chad Maron (cmaron_at_[hidden])
Date: 2007-05-15 12:41:04
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_function_tc.html).
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&)
I understand the reason for the error but I am not sure about what to do. Is there a new technique for using BOOST_PARAM_TEST_CASE to ensure the parameters are not destroyed until the test case is run?
Thanks!
Chad