Esempio n. 1
0
		void test_static_array()
		{
			test_constructor_destructor();
			test_copy_constructor();
			test_move_constructor();
			test_size();
			test_deep_copy();
			test_reconstruct_element();
			test_reconstruct_array();
			test_zero_array();
			test_get();
			test_first_last();
			test_get_range();
			test_internal_array();
			test_range_copy();
		}
int
main()
    {
    test_deep_copy();
    BOOST_TEST(++exc_count==1);
    try
        {
        std::vector< boost::shared_ptr<thread_handle> > threads;
        std::generate_n(std::inserter(threads,threads.end()),1,boost::bind(create_thread,thread_func));
        std::for_each(threads.begin(),threads.end(),check);
        return boost::report_errors();
        }
    catch(
    ... )
        {
        std::cerr <<
            "Caught unexpected exception.\n"
            "Output from current_exception_diagnostic_information:\n" <<
            boost::current_exception_diagnostic_information() << std::endl;
        return 42;
        }
    BOOST_TEST(!--exc_count);
    }