From 7aa68731b4c4e872eb28b145db6d6b6ccd4bf916 Mon Sep 17 00:00:00 2001 From: "Vicente J. Botet Escriba" Date: Sun, 1 Apr 2012 20:16:57 +0000 Subject: [PATCH] Utility: Fix #6570 [SVN r77699] --- doc/declval.qbk | 13 +++++++++++- doc/html/declval.html | 35 +++++++++++++++++++++++-------- include/boost/utility/declval.hpp | 9 ++++++-- 3 files changed, 45 insertions(+), 12 deletions(-) diff --git a/doc/declval.qbk b/doc/declval.qbk index 67e82d2..10080aa 100644 --- a/doc/declval.qbk +++ b/doc/declval.qbk @@ -14,7 +14,7 @@ [authors [Botet Escriba, Vicente J.]] [copyright 2008 Howard Hinnant] [copyright 2008 Beman Dawes] - [copyright 2009-2010 Vicente J. Botet Escriba] + [copyright 2009-2012 Vicente J. Botet Escriba] [license Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at @@ -100,5 +100,16 @@ Declares a function template convert which only participats in overloading if th [endsect] +[/===============] +[section History] +[/===============] +[heading boost 1.50] + +Fixes: + +* [@http://svn.boost.org/trac/boost/ticket/6570 #6570] Adding noexcept to boost::declval. + + +[endsect] diff --git a/doc/html/declval.html b/doc/html/declval.html index a2c5a01..dff3a83 100644 --- a/doc/html/declval.html +++ b/doc/html/declval.html @@ -3,7 +3,7 @@ Declval - + @@ -17,7 +17,7 @@
-
+

@@ -35,9 +35,9 @@

-
+
-

+

Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

@@ -49,10 +49,11 @@

Table of Contents

Overview
-
Reference
+
Reference
+
History
-
+
@@ -112,9 +113,9 @@ function is expected to be part of the daily tool-box of the C++0x programmer.

-
+

#include <boost/utility/declval.hpp> @@ -152,9 +153,25 @@ if the type From can be explicitly converted to type To.

+
+ +

+ + boost 1.50 +

+

+ Fixes: +

+
  • + #6570 + Adding noexcept to boost::declval. +
+
- +

Last revised: September 16, 2010 at 16:19:10 GMT

Last revised: April 01, 2012 at 20:13:37 GMT


diff --git a/include/boost/utility/declval.hpp b/include/boost/utility/declval.hpp index 41ec3dc..d74610c 100644 --- a/include/boost/utility/declval.hpp +++ b/include/boost/utility/declval.hpp @@ -13,6 +13,7 @@ //----------------------------------------------------------------------------// #include +//#include //----------------------------------------------------------------------------// // // @@ -36,9 +37,13 @@ namespace boost { +//#if !defined(BOOST_NO_RVALUE_REFERENCES) template - typename add_rvalue_reference::type declval(); //noexcept; // as unevaluated operand - + typename add_rvalue_reference::type declval() BOOST_NOEXCEPT; // as unevaluated operand +//#else +// template +// typename add_lvalue_reference::type declval() BOOST_NOEXCEPT; // as unevaluated operand +//#endif } // namespace boost #endif // BOOST_TYPE_TRAITS_EXT_DECLVAL__HPP