Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77539 - trunk/boost/utility
From: vicente.botet_at_[hidden]
Date: 2012-03-25 11:58:41


Author: viboes
Date: 2012-03-25 11:58:40 EDT (Sun, 25 Mar 2012)
New Revision: 77539
URL: http://svn.boost.org/trac/boost/changeset/77539

Log:
Utility: Apply patch for 6570: Adding noexcept to boost::declval
Text files modified:
   trunk/boost/utility/declval.hpp | 7 ++++++-
   1 files changed, 6 insertions(+), 1 deletions(-)

Modified: trunk/boost/utility/declval.hpp
==============================================================================
--- trunk/boost/utility/declval.hpp (original)
+++ trunk/boost/utility/declval.hpp 2012-03-25 11:58:40 EDT (Sun, 25 Mar 2012)
@@ -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


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk