From effa8a8ce5259fd5d8508403ce351420bc25a22e Mon Sep 17 00:00:00 2001 From: Eric Friedman Date: Tue, 22 Jul 2003 10:16:10 +0000 Subject: [PATCH] Now uses BOOST_EXPLICIT_TEMPLATE_TYPE. [SVN r19261] --- include/boost/variant/detail/forced_return.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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);