Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85483 - trunk/boost
From: antoshkka_at_[hidden]
Date: 2013-08-27 03:51:27


Author: apolukhin
Date: 2013-08-27 03:51:27 EDT (Tue, 27 Aug 2013)
New Revision: 85483
URL: http://svn.boost.org/trac/boost/changeset/85483

Log:
Delay character trait extraction (refs #9046)

Text files modified:
   trunk/boost/lexical_cast.hpp | 8 ++++----
   1 files changed, 4 insertions(+), 4 deletions(-)

Modified: trunk/boost/lexical_cast.hpp
==============================================================================
--- trunk/boost/lexical_cast.hpp Tue Aug 27 03:07:15 2013 (r85482)
+++ trunk/boost/lexical_cast.hpp 2013-08-27 03:51:27 EDT (Tue, 27 Aug 2013) (r85483)
@@ -584,9 +584,9 @@
 
             typedef BOOST_DEDUCED_TYPENAME boost::mpl::if_c<
                 boost::detail::extract_char_traits<char_type, Target>::value,
- BOOST_DEDUCED_TYPENAME boost::detail::extract_char_traits<char_type, Target>::trait_t,
- BOOST_DEDUCED_TYPENAME boost::detail::extract_char_traits<char_type, no_cv_src>::trait_t
- >::type traits;
+ BOOST_DEDUCED_TYPENAME boost::detail::extract_char_traits<char_type, Target>,
+ BOOST_DEDUCED_TYPENAME boost::detail::extract_char_traits<char_type, no_cv_src>
+ >::type::trait_t traits;
 
             typedef boost::type_traits::ice_and<
                 boost::is_same<char, src_char_t>::value, // source is not a wide character based type
@@ -653,7 +653,7 @@
             BOOST_STATIC_ASSERT(!std::numeric_limits<T>::is_signed);
 #endif
 
- typedef typename Traits::int_type int_type;
+ typedef BOOST_DEDUCED_TYPENAME Traits::int_type int_type;
             CharT const czero = lcast_char_constants<CharT>::zero;
             int_type const zero = Traits::to_int_type(czero);
             BOOST_DEDUCED_TYPENAME boost::mpl::if_c<


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