forked from boostorg/type_traits
Fix iostreams lib failures, and some some conceptual errors.
This commit is contained in:
@ -13,7 +13,7 @@
|
||||
// This header is deprecated and no longer used by type_traits:
|
||||
//
|
||||
#if defined(__GNUC__) || defined(_MSC_VER)
|
||||
# pragma message("NOTE: Use of this header (ice_and.hpp) is deprecated")
|
||||
# pragma message("NOTE: Use of this header (boost/type_traits/config.hpp) is deprecated")
|
||||
#endif
|
||||
|
||||
#endif // BOOST_TT_CONFIG_HPP_INCLUDED
|
||||
|
@ -61,6 +61,7 @@ namespace boost{
|
||||
static const char data = 0;
|
||||
return *reinterpret_cast<const mpl::integral_c<T, val>*>(&data);
|
||||
}
|
||||
BOOST_CONSTEXPR operator T() { return val; }
|
||||
};
|
||||
|
||||
template <bool val>
|
||||
@ -74,6 +75,7 @@ namespace boost{
|
||||
static const char data = 0;
|
||||
return *reinterpret_cast<const mpl::bool_<val>*>(&data);
|
||||
}
|
||||
BOOST_CONSTEXPR operator bool() { return val; }
|
||||
};
|
||||
|
||||
typedef integral_constant<bool, true> true_type;
|
||||
|
Reference in New Issue
Block a user