From 3d7695eeb2aa545d239de22a6dea7f82cdc291c6 Mon Sep 17 00:00:00 2001 From: David Callu Date: Tue, 26 May 2020 12:51:11 +0200 Subject: [PATCH] fix usage of boost's deprecated header --- include/turtle/constraints.hpp | 2 +- include/turtle/detail/type_name.hpp | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/turtle/constraints.hpp b/include/turtle/constraints.hpp index a24ee04..57e17e0 100644 --- a/include/turtle/constraints.hpp +++ b/include/turtle/constraints.hpp @@ -19,7 +19,7 @@ #include #include #include -#include +#include namespace mock { diff --git a/include/turtle/detail/type_name.hpp b/include/turtle/detail/type_name.hpp index 8867d81..9c8acb2 100644 --- a/include/turtle/detail/type_name.hpp +++ b/include/turtle/detail/type_name.hpp @@ -14,7 +14,7 @@ #include #include #include -#include +#include #include #include #include @@ -24,7 +24,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 +33,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 +43,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 +108,7 @@ namespace detail return std::string::npos; } - const boost::detail::sp_typeinfo* info_; + const boost::core::typeinfo* info_; }; } } // mock