From 484d184de54144d9a737d3f168d45fc3002272d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20J=C3=A4rvi?= Date: Fri, 5 Dec 2003 16:31:38 +0000 Subject: [PATCH] guarded enable_if definitions with BOOST_NO_SFINAE [SVN r21149] --- include/boost/utility/enable_if.hpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/include/boost/utility/enable_if.hpp b/include/boost/utility/enable_if.hpp index c1f217d..0498d36 100644 --- a/include/boost/utility/enable_if.hpp +++ b/include/boost/utility/enable_if.hpp @@ -14,6 +14,13 @@ #ifndef BOOST_UTILITY_ENABLE_IF_HPP #define BOOST_UTILITY_ENABLE_IF_HPP +#include + +// Even the definition of enable_if causes problems on some compilers, +// so it's macroed out for all compilers that do not support SFINAE + +#ifndef BOOST_NO_SFINAE + namespace boost { @@ -62,8 +69,8 @@ namespace boost template struct lazy_disable_if : public lazy_disable_if_c {}; - - } // namespace boost +#endif // BOOST_NO_SFINAE + #endif