]> git.donarmstrong.com Git - rsem.git/blobdiff - boost/type_traits/is_empty.hpp
Updated boost to v1.55.0
[rsem.git] / boost / type_traits / is_empty.hpp
index 45c4e9e1eeb610314931b23fa9fc17e1e98eb954..8a2c5b8bc6b874d4b19f129cafdc987be095bf05 100644 (file)
 // should be always the last #include directive
 #include <boost/type_traits/detail/bool_trait_def.hpp>
 
+#ifndef BOOST_INTERNAL_IS_EMPTY
+#define BOOST_INTERNAL_IS_EMPTY(T) false
+#else
+#define BOOST_INTERNAL_IS_EMPTY(T) BOOST_IS_EMPTY(T)
+#endif
+
 namespace boost {
 
 namespace detail {
@@ -83,7 +89,7 @@ struct is_empty_impl
         bool, value = (
             ::boost::type_traits::ice_or<
               ::boost::detail::empty_helper<cvt,::boost::is_class<T>::value>::value
-              , BOOST_IS_EMPTY(cvt)
+              , BOOST_INTERNAL_IS_EMPTY(cvt)
             >::value
             ));
 };
@@ -118,7 +124,7 @@ struct is_empty_impl
                 , ::boost::is_class<T>::value
                 , ::boost::is_convertible< r_type,int>::value
               >::value
-              , BOOST_IS_EMPTY(cvt)
+              , BOOST_INTERNAL_IS_EMPTY(cvt)
            >::value));
 };
 
@@ -187,14 +193,14 @@ struct is_empty_impl
    typedef typename result::type eh_type;
 
    BOOST_STATIC_CONSTANT(bool, value =
-      (::boost::type_traits::ice_or<eh_type::value, BOOST_IS_EMPTY(T)>::value));
+      (::boost::type_traits::ice_or<eh_type::value, BOOST_INTERNAL_IS_EMPTY(T)>::value));
 };
 
 #else
 
 template <typename T> struct is_empty_impl
 {
-    BOOST_STATIC_CONSTANT(bool, value = BOOST_IS_EMPTY(T));
+    BOOST_STATIC_CONSTANT(bool, value = BOOST_INTERNAL_IS_EMPTY(T));
 };
 
 #endif  // BOOST_MSVC6_MEMBER_TEMPLATES
@@ -217,5 +223,7 @@ BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_empty,T,::boost::detail::is_empty_impl<T>::value
 
 #include <boost/type_traits/detail/bool_trait_undef.hpp>
 
+#undef BOOST_INTERNAL_IS_EMPTY
+
 #endif // BOOST_TT_IS_EMPTY_HPP_INCLUDED