|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r73295 - in sandbox/conversion/boost/conversion: . type_traits
From: vicente.botet_at_[hidden]
Date: 2011-07-21 22:11:50
Author: viboes
Date: 2011-07-21 22:11:49 EDT (Thu, 21 Jul 2011)
New Revision: 73295
URL: http://svn.boost.org/trac/boost/changeset/73295
Log:
conversion: is_extrinsically_explicit_convertible is by defult based on is_constructible
Text files modified:
sandbox/conversion/boost/conversion/explicit_convert_to.hpp | 2 ++
sandbox/conversion/boost/conversion/type_traits/is_explicitly_convertible.hpp | 3 ++-
2 files changed, 4 insertions(+), 1 deletions(-)
Modified: sandbox/conversion/boost/conversion/explicit_convert_to.hpp
==============================================================================
--- sandbox/conversion/boost/conversion/explicit_convert_to.hpp (original)
+++ sandbox/conversion/boost/conversion/explicit_convert_to.hpp 2011-07-21 22:11:49 EDT (Thu, 21 Jul 2011)
@@ -34,6 +34,7 @@
#include <boost/conversion/implicit_convert_to.hpp>
#include <boost/utility/enable_if.hpp>
#include <boost/type_traits/integral_constant.hpp>
+#include <boost/type_traits/add_reference.hpp>
#include <boost/conversion/type_traits/is_explicitly_convertible.hpp>
#include <boost/conversion/is_extrinsically_convertible.hpp>
#include <boost/conversion/detail/is_optional.hpp>
@@ -87,6 +88,7 @@
{
//! @Effects Converts the @c from parameter to an instance of the @c Target type, using the conversion operator or copy constructor.
//! @Throws Whatever the underlying conversion @c Target operator of the @c Source class throws.
+ //Target operator()(const typename add_reference<Source>::type val)
Target operator()(const Source& val)
{
return Target((val));
Modified: sandbox/conversion/boost/conversion/type_traits/is_explicitly_convertible.hpp
==============================================================================
--- sandbox/conversion/boost/conversion/type_traits/is_explicitly_convertible.hpp (original)
+++ sandbox/conversion/boost/conversion/type_traits/is_explicitly_convertible.hpp 2011-07-21 22:11:49 EDT (Thu, 21 Jul 2011)
@@ -51,7 +51,8 @@
#else
#include <boost/conversion/type_traits/is_constructible.hpp>
-#if BOOST_CONVERSION_TT_IS_EXPLICITLY_CONVERTIBLE_USES_IS_CONSTRUCTIBLE
+#define BOOST_CONVERSION_TT_IS_EXPLICITLY_CONVERTIBLE_USES_IS_CONSTRUCTIBLE
+#ifdef BOOST_CONVERSION_TT_IS_EXPLICITLY_CONVERTIBLE_USES_IS_CONSTRUCTIBLE
namespace boost {
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