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 9c23de6..2cfccdb 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 {