diff --git a/boost/type_index/template_index_impl.hpp b/boost/type_index/template_index_impl.hpp index df608b4..1dbc46e 100644 --- a/boost/type_index/template_index_impl.hpp +++ b/boost/type_index/template_index_impl.hpp @@ -214,7 +214,7 @@ public: /// Method for constructing template_index instance for type T. /// Strips const, volatile and & modifiers from T. template -template_index template_id() BOOST_NOEXCEPT { +inline template_index template_id() BOOST_NOEXCEPT { return template_index::construct(); } @@ -223,7 +223,7 @@ template_index template_id() BOOST_NOEXCEPT { /// If T has no const, volatile, & and && modifiers, then returns exactly /// the same result as in case of calling `template_id()`. template -template_index template_id_with_cvr() BOOST_NOEXCEPT { +inline template_index template_id_with_cvr() BOOST_NOEXCEPT { return template_index::construct_with_cvr(); } diff --git a/boost/type_index/type_index_impl.hpp b/boost/type_index/type_index_impl.hpp index 143977c..ac96772 100644 --- a/boost/type_index/type_index_impl.hpp +++ b/boost/type_index/type_index_impl.hpp @@ -320,7 +320,7 @@ inline bool operator >= (type_index::stl_type_info const& lhs, type_index const& /// Function, to get type_index for a type T. Strips const, volatile and & modifiers from T. template -type_index type_id() BOOST_NOEXCEPT { +inline type_index type_id() BOOST_NOEXCEPT { return type_index::construct(); } @@ -329,7 +329,7 @@ type_index type_id() BOOST_NOEXCEPT { /// If T has no const, volatile, & and && modifiers, then returns exactly /// the same result as in case of calling `type_id()`. template -type_index type_id_with_cvr() BOOST_NOEXCEPT { +inline type_index type_id_with_cvr() BOOST_NOEXCEPT { return type_index::construct_with_cvr(); } @@ -337,7 +337,7 @@ type_index type_id_with_cvr() BOOST_NOEXCEPT { /// This method available only with RTTI enabled. Without RTTI support it won't compile, /// producing a compile-time error with message: "boost::type_id_rtti_only(T&) requires RTTI" template -type_index type_id_rtti_only(T& rtti_val) BOOST_NOEXCEPT { +inline type_index type_id_rtti_only(T& rtti_val) BOOST_NOEXCEPT { return type_index::construct_rtti_only(rtti_val); } @@ -345,7 +345,7 @@ type_index type_id_rtti_only(T& rtti_val) BOOST_NOEXCEPT { /// This method available only with RTTI enabled. Without RTTI support it won't compile, /// producing a compile-time error with message: "boost::type_id_rtti_only(T*) requires RTTI" template -type_index type_id_rtti_only(T* rtti_val) { +inline type_index type_id_rtti_only(T* rtti_val) { return type_index::construct_rtti_only(rtti_val); } diff --git a/boost/type_index/type_index_minimal.hpp b/boost/type_index/type_index_minimal.hpp index 398a968..6148ff4 100644 --- a/boost/type_index/type_index_minimal.hpp +++ b/boost/type_index/type_index_minimal.hpp @@ -33,23 +33,23 @@ namespace boost { typedef template_index type_index; template -type_index type_id() BOOST_NOEXCEPT { +inline type_index type_id() BOOST_NOEXCEPT { return template_index::construct(); } template -type_index type_id_with_cvr() BOOST_NOEXCEPT { +inline type_index type_id_with_cvr() BOOST_NOEXCEPT { return template_index::construct_with_cvr(); } template -type_index type_id_rtti_only(T& rtti_val) BOOST_NOEXCEPT { +inline type_index type_id_rtti_only(T& rtti_val) BOOST_NOEXCEPT { BOOST_STATIC_ASSERT_MSG(sizeof(T) && false, "boost::type_id_rtti_only(T&) requires RTTI"); return type_index(); } template -type_index type_id_rtti_only(T* rtti_val) { +inline type_index type_id_rtti_only(T* rtti_val) { BOOST_STATIC_ASSERT_MSG(sizeof(T) && false, "boost::type_id_rtti_only(T*) requires RTTI"); return type_index(); }