mirror of
https://github.com/boostorg/utility.git
synced 2025-05-09 15:04:00 +00:00
Utility: Apply patch for 6570: Adding noexcept to boost::declval
[SVN r77539]
This commit is contained in:
parent
2a6cd0c9c4
commit
9fa5d63525
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user