Boost logo

Boost :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2007-05-16 02:43:58

"Chad Maron" <cmaron_at_[hidden]> wrote in message
> Hey all,
> I have some code that is essentially doing what is suggested on the
> Parameterized free function based test case page
> (
> 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.


Boost list run by bdawes at, gregod at, cpdaniel at, john at