diff --git a/include/boost/variant/detail/forced_return.hpp b/include/boost/variant/detail/forced_return.hpp index c3c89a6..7189b34 100644 --- a/include/boost/variant/detail/forced_return.hpp +++ b/include/boost/variant/detail/forced_return.hpp @@ -42,7 +42,7 @@ namespace detail { namespace variant { // "standard" implementation: template -inline T forced_return() +inline T forced_return( BOOST_EXPLICIT_TEMPLATE_TYPE(T) ) { // logical error: should never be here! (see above) BOOST_ASSERT(false); @@ -53,7 +53,7 @@ inline T forced_return() } template <> -inline void forced_return() +inline void forced_return( BOOST_EXPLICIT_TEMPLATE_TYPE(void) ) { // logical error: should never be here! (see above) BOOST_ASSERT(false); @@ -70,7 +70,7 @@ inline void forced_return() template inline BOOST_VARIANT_AUX_GENERIC_RESULT_TYPE(T) -forced_return() +forced_return( BOOST_EXPLICIT_TEMPLATE_TYPE(T) ) { // logical error: should never be here! (see above) BOOST_ASSERT(false); @@ -92,7 +92,7 @@ inline void forced_return_no_return() {}; template inline BOOST_VARIANT_AUX_GENERIC_RESULT_TYPE(T) -forced_return() +forced_return( BOOST_EXPLICIT_TEMPLATE_TYPE(T) ) { // logical error: should never be here! (see above) BOOST_ASSERT(false);