Boost logo

Boost Users :

Subject: [Boost-users] Boost unit test usage compile error
From: Yogesh Arora (yogesh.ar_at_[hidden])
Date: 2010-03-11 16:21:24


I am using Boost 1.39.0 on sun using sun cc compiler 5.9. I have written a
simple test case which used boost unit test in included manner.

The test file is

#define BOOST_TEST_MAIN
#define BOOST_TEST_MODULE example
#include <boost/test/included/unit_test.hpp>
BOOST_AUTO_TEST_CASE( test1 )
{
    BOOST_CHECK( true );
}

i get this compilation error. I cant figure out what it means. Can someone
please help me in this case

boost_1_39_0/boost/test/impl/unit_test_main.ipp", line 113: Error: Could not
find a match for
std::vector<boost::unit_test::test_case_filter::single_filter>::vector(boost::unit_test::basic_string_token_iterator<char,
boost::unit_test::ut_detail::default_char_compare<char>>,
boost::unit_test::basic_string_token_iterator<char,
boost::unit_test::ut_detail::default_char_compare<char>>) needed in
boost::unit_test::test_case_filter::test_case_filter(boost::unit_test::basic_cstring<const
char>).
"/home/yarora/boost_1_39_0/boost/test/impl/unit_test_main.ipp", line 113:
Error: Formal argument x of type const
std::vector<boost::unit_test::test_case_filter::single_filter>& in call to
std::vector<std::vector<boost::unit_test::test_case_filter::single_filter>
>::push_back(const
std::vector<boost::unit_test::test_case_filter::single_filter>&) is being
passed int.
2 Error(s) detected.
Yogesh



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net