From 366ab1b621673244c553f5738bb52e0c846093ba Mon Sep 17 00:00:00 2001 From: Peder Holt Date: Wed, 30 Aug 2006 17:18:13 +0000 Subject: [PATCH] Merged from HEAD: Disable enable_if for compiler that does not support it. [SVN r35000] --- include/boost/typeof/native.hpp | 7 +++++-- include/boost/typeof/typeof_impl.hpp | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/include/boost/typeof/native.hpp b/include/boost/typeof/native.hpp index 1c65a8c..4861782 100755 --- a/include/boost/typeof/native.hpp +++ b/include/boost/typeof/native.hpp @@ -22,7 +22,10 @@ namespace boost { namespace type_of { #include namespace boost { namespace type_of { - +# ifdef BOOST_NO_SFINAE + template + sizer::type> encode(const T&); +# else template typename enable_if, T&>::type ensure_obj(T&); @@ -30,7 +33,7 @@ namespace boost { namespace type_of { template typename disable_if, T&>::type ensure_obj(const T&); - +# endif }} #endif//BOOST_NO_SFINAE diff --git a/include/boost/typeof/typeof_impl.hpp b/include/boost/typeof/typeof_impl.hpp index 8bfe65c..7426905 100755 --- a/include/boost/typeof/typeof_impl.hpp +++ b/include/boost/typeof/typeof_impl.hpp @@ -34,7 +34,10 @@ namespace boost { namespace type_of { // namespace boost { namespace type_of { - +# ifdef BOOST_NO_SFINAE + template + sizer::type> encode(const T&); +# else template typename enable_if< typename is_function::type, @@ -44,7 +47,7 @@ namespace boost { namespace type_of { typename disable_if< typename is_function::type, sizer::type> >::type encode(const T&); - +# endif }} // namespace boost { namespace type_of {