Utility: Apply patch for 6570: Adding noexcept to boost::declval

[SVN r77539]
This commit is contained in:
Vicente J. Botet Escriba 2012-03-25 15:58:40 +00:00
parent 2a6cd0c9c4
commit 9fa5d63525

View File

@ -13,6 +13,7 @@
//----------------------------------------------------------------------------//
#include <boost/type_traits/add_rvalue_reference.hpp>
#include <boost/type_traits/add_lvalue_reference.hpp>
//----------------------------------------------------------------------------//
// //
@ -36,9 +37,13 @@
namespace boost {
#if !defined(BOOST_NO_RVALUE_REFERENCES)
template <typename T>
typename add_rvalue_reference<T>::type declval(); //noexcept; // as unevaluated operand
#else
template <typename T>
typename add_lvalue_reference<T>::type declval() BOOST_NOEXCEPT; // as unevaluated operand
#endif
} // namespace boost
#endif // BOOST_TYPE_TRAITS_EXT_DECLVAL__HPP