Fix iostreams lib failures, and some some conceptual errors.

This commit is contained in:
jzmaddock
2015-01-20 18:14:59 +00:00
parent 81c4b8f860
commit 5a2ab9ffb0
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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;