mirror of
https://github.com/boostorg/utility.git
synced 2025-05-09 15:04:00 +00:00
guarded enable_if definitions with BOOST_NO_SFINAE
[SVN r21149]
This commit is contained in:
parent
3305cf1592
commit
484d184de5
@ -14,6 +14,13 @@
|
|||||||
#ifndef BOOST_UTILITY_ENABLE_IF_HPP
|
#ifndef BOOST_UTILITY_ENABLE_IF_HPP
|
||||||
#define BOOST_UTILITY_ENABLE_IF_HPP
|
#define BOOST_UTILITY_ENABLE_IF_HPP
|
||||||
|
|
||||||
|
#include <boost/config.hpp>
|
||||||
|
|
||||||
|
// 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
|
namespace boost
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -62,8 +69,8 @@ namespace boost
|
|||||||
template <class Cond, class T>
|
template <class Cond, class T>
|
||||||
struct lazy_disable_if : public lazy_disable_if_c<Cond::value, T> {};
|
struct lazy_disable_if : public lazy_disable_if_c<Cond::value, T> {};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
} // namespace boost
|
} // namespace boost
|
||||||
|
|
||||||
|
#endif // BOOST_NO_SFINAE
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user