forked from boostorg/type_traits
Remove obsolete #includes - reduces dependency burden.
This commit is contained in:
@ -7,11 +7,7 @@
|
||||
#ifndef BOOST_CHECK_INTEGRAL_CONSTANT_HPP
|
||||
#define BOOST_CHECK_INTEGRAL_CONSTANT_HPP
|
||||
|
||||
#ifdef USE_UNIT_TEST
|
||||
#include <boost/test/test_tools.hpp>
|
||||
#else
|
||||
#include "test.hpp"
|
||||
#endif
|
||||
|
||||
namespace boost{
|
||||
namespace detail{
|
||||
|
@ -7,11 +7,7 @@
|
||||
#ifndef BOOST_CHECK_TYPE_HPP
|
||||
#define BOOST_CHECK_TYPE_HPP
|
||||
|
||||
#ifdef USE_UNIT_TEST
|
||||
#include <boost/test/test_tools.hpp>
|
||||
#else
|
||||
#include "test.hpp"
|
||||
#endif
|
||||
#include <boost/type_traits/is_same.hpp>
|
||||
|
||||
/*
|
||||
|
@ -13,10 +13,7 @@
|
||||
#pragma warning(disable:4201)
|
||||
#endif
|
||||
|
||||
#ifdef USE_UNIT_TEST
|
||||
# include <boost/test/unit_test.hpp>
|
||||
#endif
|
||||
#include <boost/utility.hpp>
|
||||
#include <boost/noncopyable.hpp>
|
||||
#include <iostream>
|
||||
#include <typeinfo>
|
||||
|
||||
@ -62,35 +59,6 @@
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef USE_UNIT_TEST
|
||||
//
|
||||
// global unit, this is not safe, but until the unit test framework uses
|
||||
// shared_ptr throughout this is about as good as it gets :-(
|
||||
//
|
||||
boost::unit_test::test_suite* get_master_unit(const char* name = 0);
|
||||
|
||||
//
|
||||
// initialisation class:
|
||||
//
|
||||
class unit_initialiser
|
||||
{
|
||||
public:
|
||||
unit_initialiser(void (*f)(), const char* /*name*/)
|
||||
{
|
||||
get_master_unit("Type Traits")->add( BOOST_TEST_CASE(f) );
|
||||
}
|
||||
};
|
||||
|
||||
#define TT_TEST_BEGIN(trait_name)\
|
||||
namespace{\
|
||||
void trait_name();\
|
||||
unit_initialiser init(trait_name, BOOST_STRINGIZE(trait_name));\
|
||||
void trait_name(){
|
||||
|
||||
#define TT_TEST_END }}
|
||||
|
||||
#else
|
||||
|
||||
//
|
||||
// replacements for Unit test macros:
|
||||
//
|
||||
@ -128,7 +96,6 @@ int error_count = 0;
|
||||
int main(){
|
||||
#define TT_TEST_END return error_count; }
|
||||
|
||||
#endif
|
||||
|
||||
#define TRANSFORM_CHECK(name, from_suffix, to_suffix)\
|
||||
BOOST_CHECK_TYPE(bool to_suffix, name<bool from_suffix>::type);\
|
||||
|
Reference in New Issue
Block a user