Simplified type_info support due to improvements in boost/detail/sp_typeinfo.hpp. A few tweaks to better deal with warnings.

[SVN r58132]
This commit is contained in:
Emil Dotchevski
2009-12-04 06:33:47 +00:00
parent 58a49ff77e
commit 9d499676ae
24 changed files with 8067 additions and 8106 deletions

View File

@ -7,9 +7,6 @@
#include <boost/detail/lightweight_test.hpp>
#include <boost/config.hpp>
#ifdef BOOST_MSVC
#pragma warning(disable:4702) //unreachable code
#endif
class my_exception: public std::exception { };

View File

@ -7,11 +7,6 @@
#include <boost/throw_exception.hpp>
#include <boost/detail/lightweight_test.hpp>
#include <boost/config.hpp>
#ifdef BOOST_MSVC
#pragma warning(disable:4702) //unreachable code
#endif
class my_exception: public std::exception { };
int

View File

@ -7,11 +7,7 @@
import testing ;
project
: requirements
<exception-handling>on
<warnings>all
;
project : requirements <exception-handling>on ;
#to_string

View File

@ -10,11 +10,6 @@
#include <boost/detail/workaround.hpp>
#include <string>
#include <boost/config.hpp>
#ifdef BOOST_MSVC
#pragma warning(disable:4512) //assignment operator could not be generated
#endif
typedef boost::error_info<struct my_tag,int> my_info;
template <class T>

View File

@ -17,11 +17,6 @@
#include <boost/detail/lightweight_test.hpp>
#include <exception>
#include <boost/config.hpp>
#ifdef BOOST_MSVC
#pragma warning(disable:4702) //unreachable code
#endif
struct
test_exception:
virtual boost::exception,

View File

@ -8,12 +8,6 @@
#include <boost/detail/lightweight_test.hpp>
#include <boost/detail/workaround.hpp>
#include <boost/config.hpp>
#ifdef BOOST_MSVC
#pragma warning(disable:4702) //unreachable code
#pragma warning(disable:4512) //assignment operator could not be generated
#endif
struct throws_on_copy;
struct non_printable { };

View File

@ -9,7 +9,6 @@
#include <boost/exception/info.hpp>
#include <boost/exception/diagnostic_information.hpp>
#include <boost/detail/lightweight_test.hpp>
#include <stdlib.h>
struct
my_exception:

View File

@ -9,11 +9,6 @@
#include <boost/exception_ptr.hpp>
#include <boost/detail/lightweight_test.hpp>
#include <boost/config.hpp>
#ifdef BOOST_MSVC
#pragma warning(disable:4702) //unreachable code
#endif
typedef boost::error_info<struct tag_test_int,int> test_data;
struct
@ -45,7 +40,7 @@ boost_throw_exception_test()
int const * line=boost::get_error_info<boost::throw_line>(x);
BOOST_TEST( file && *file );
BOOST_TEST( function && *function );
BOOST_TEST( line && *line==37 );
BOOST_TEST( line && *line==32 );
}
catch(
... )
@ -66,7 +61,7 @@ boost_throw_exception_test()
int const * data=boost::get_error_info<test_data>(x);
BOOST_TEST( file && *file );
BOOST_TEST( function && *function );
BOOST_TEST( line && *line==57 );
BOOST_TEST( line && *line==52 );
BOOST_TEST( data && *data==42 );
}
catch(