diff --git a/include/turtle/detail/type_name.hpp b/include/turtle/detail/type_name.hpp index 8867d81..ec4775b 100644 --- a/include/turtle/detail/type_name.hpp +++ b/include/turtle/detail/type_name.hpp @@ -14,7 +14,11 @@ #include #include #include +#if BOOST_VERSION >= 107000 +#include +#else #include +#endif #include #include #include @@ -24,7 +28,7 @@ #include #endif -#define MOCK_TYPE_NAME( t ) mock::detail::type_name( BOOST_SP_TYPEID(t) ) +#define MOCK_TYPE_NAME( t ) mock::detail::type_name( BOOST_CORE_TYPEID(t) ) namespace mock { @@ -33,7 +37,7 @@ namespace detail class type_name { public: - explicit type_name( const boost::detail::sp_typeinfo& info ) + explicit type_name( const boost::core::typeinfo& info ) : info_( &info ) {} friend std::ostream& operator<<( std::ostream& s, const type_name& t ) @@ -43,7 +47,7 @@ namespace detail } private: void serialize( std::ostream& s, - const boost::detail::sp_typeinfo& info ) const + const boost::core::typeinfo& info ) const { const char* name = info.name(); #ifdef __GNUC__ @@ -108,7 +112,7 @@ namespace detail return std::string::npos; } - const boost::detail::sp_typeinfo* info_; + const boost::core::typeinfo* info_; }; } } // mock