|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r84236 - trunk/boost
From: antoshkka_at_[hidden]
Date: 2013-05-11 15:40:17
Author: apolukhin
Date: 2013-05-11 15:40:16 EDT (Sat, 11 May 2013)
New Revision: 84236
URL: http://svn.boost.org/trac/boost/changeset/84236
Log:
Bugfix for any
Text files modified:
trunk/boost/any.hpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
Modified: trunk/boost/any.hpp
==============================================================================
--- trunk/boost/any.hpp (original)
+++ trunk/boost/any.hpp 2013-05-11 15:40:16 EDT (Sat, 11 May 2013)
@@ -20,6 +20,7 @@
#include "boost/config.hpp"
#include <boost/type_traits/remove_reference.hpp>
#include <boost/type_traits/decay.hpp>
+#include <boost/type_traits/add_reference.hpp>
#include <boost/type_traits/is_reference.hpp>
#include <boost/type_traits/is_const.hpp>
#include <boost/throw_exception.hpp>
@@ -288,7 +289,7 @@
typedef BOOST_DEDUCED_TYPENAME boost::mpl::if_<
boost::is_reference<ValueType>,
ValueType,
- ValueType&
+ BOOST_DEDUCED_TYPENAME boost::add_reference<ValueType>::type
>::type ref_type;
return static_cast<ref_type>(*result);
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