From 25d109144dfa5b8d2342af656cce0ded534f35e7 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 12 Feb 2003 18:46:12 +0000 Subject: [PATCH] =?UTF-8?q?Don't=20omit=20template=20parameter=20names=20(?= =?UTF-8?q?Markus=20Sch=C3=B6pflin)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [SVN r17333] --- include/boost/function/function_base.hpp | 47 +++++++++--------------- 1 file changed, 18 insertions(+), 29 deletions(-) diff --git a/include/boost/function/function_base.hpp b/include/boost/function/function_base.hpp index 9f4bd32..22f379f 100644 --- a/include/boost/function/function_base.hpp +++ b/include/boost/function/function_base.hpp @@ -295,44 +295,33 @@ namespace boost { }; #ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION - -# if BOOST_WORKAROUND(__HP_aCC, <= 33900) template struct enable_if; -# else - template struct enable_if; -# endif - template struct enable_if { typedef T type; }; template struct enable_if {}; -#else -# if BOOST_WORKAROUND(__HP_aCC, <= 33900) - template -# else - template -# endif - struct enabled + template + struct enabled + { + template + struct base { - template - struct base - { - typedef T type; - }; + typedef T type; }; + }; - template<> - struct enabled - { - template - struct base - { - }; - }; - - template - struct enable_if : public enabled::template base + template<> + struct enabled + { + template + struct base { }; + }; + + template + struct enable_if : public enabled::template base + { + }; #endif // A type that is only used for comparisons against zero