diff --git a/src/libraries/turtle/check.hpp b/src/libraries/turtle/check.hpp index 12a336f..e2474cc 100644 --- a/src/libraries/turtle/check.hpp +++ b/src/libraries/turtle/check.hpp @@ -14,7 +14,6 @@ #include "operators.hpp" #include "log.hpp" #include -#include #include #include @@ -22,42 +21,6 @@ namespace mock { namespace detail { - template< typename Functor, typename Actual > - struct FunctorCompatible : private boost::noncopyable - { - public: - BOOST_CONCEPT_USAGE( FunctorCompatible ) - { - boost::require_boolean_expr( - // if an error is generated by the line below it means - // an argument passed to 'with' was of the wrong type - functor_accepts( actual_argument_type ) - ); - } - private: - FunctorCompatible( int ) {} - Functor functor_accepts; - Actual actual_argument_type; - }; - - template< typename Expected, typename Actual > - struct EqualityComparable : private boost::noncopyable - { - public: - BOOST_CONCEPT_USAGE( EqualityComparable ) - { - boost::require_boolean_expr( - // if an error is generated by the line below it means - // an argument passed to 'with' was of the wrong type - actual_argument_type == expected_argument_type - ); - } - private: - EqualityComparable( int ) {} - Expected expected_argument_type; - Actual actual_argument_type; - }; - template< typename Actual > class check_base : boost::noncopyable { @@ -81,12 +44,7 @@ namespace detail public: explicit check( Expected expected ) : expected_( expected ) - { - BOOST_CONCEPT_ASSERT(( EqualityComparable< - BOOST_DEDUCED_TYPENAME - boost::unwrap_reference< Expected >::type, - Actual > )); - } + {} private: virtual bool operator()( Actual actual ) { @@ -107,9 +65,7 @@ namespace detail public: explicit check( const constraint< Constraint >& c ) : c_( c.f_ ) - { - BOOST_CONCEPT_ASSERT(( FunctorCompatible< Constraint, Actual > )); - } + {} private: virtual bool operator()( Actual actual ) { @@ -133,9 +89,7 @@ namespace detail public: explicit check( const Functor& f ) : f_( f ) - { - BOOST_CONCEPT_ASSERT(( FunctorCompatible< Functor, Actual > )); - } + {} private: virtual bool operator()( Actual actual ) { diff --git a/src/tests/pch_test/pch_test.h b/src/tests/pch_test/pch_test.h index 5174153..bb51d69 100644 --- a/src/tests/pch_test/pch_test.h +++ b/src/tests/pch_test/pch_test.h @@ -11,7 +11,6 @@ //#include //#include //#include -//#include //#include //#include //#include