diff --git a/include/boost/variant/detail/visitation_impl.hpp b/include/boost/variant/detail/visitation_impl.hpp index c7250c30..69b7a2b4 100644 --- a/include/boost/variant/detail/visitation_impl.hpp +++ b/include/boost/variant/detail/visitation_impl.hpp @@ -190,7 +190,7 @@ template < , typename Visitor, typename VoidPtrCV , typename NoBackupFlag > -inline typename Visitor::result_type +BOOST_FORCEINLINE typename Visitor::result_type visitation_impl( const int internal_which, const int logical_which , Visitor& visitor, VoidPtrCV storage diff --git a/include/boost/variant/variant.hpp b/include/boost/variant/variant.hpp index fb48fd2d..8be5a6da 100644 --- a/include/boost/variant/variant.hpp +++ b/include/boost/variant/variant.hpp @@ -2315,7 +2315,7 @@ class variant #endif// !defined(BOOST_NO_MEMBER_TEMPLATE_FRIENDS) template - static typename Visitor::result_type + BOOST_FORCEINLINE static typename Visitor::result_type internal_apply_visitor_impl( int internal_which , int logical_which @@ -2340,7 +2340,7 @@ class variant } template - typename Visitor::result_type + BOOST_FORCEINLINE typename Visitor::result_type internal_apply_visitor(Visitor& visitor) { return internal_apply_visitor_impl( @@ -2349,7 +2349,7 @@ class variant } template - typename Visitor::result_type + BOOST_FORCEINLINE typename Visitor::result_type internal_apply_visitor(Visitor& visitor) const { return internal_apply_visitor_impl(