$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
From: joaquin_at_[hidden]
Date: 2007-11-26 06:52:04
Author: joaquin
Date: 2007-11-26 06:52:03 EST (Mon, 26 Nov 2007)
New Revision: 41394
URL: http://svn.boost.org/trac/boost/changeset/41394
Log:
added missing traits template arg to a lexical_stream instantiation
Text files modified: 
   trunk/boost/lexical_cast.hpp |     8 +++++++-                                
   1 files changed, 7 insertions(+), 1 deletions(-)
Modified: trunk/boost/lexical_cast.hpp
==============================================================================
--- trunk/boost/lexical_cast.hpp	(original)
+++ trunk/boost/lexical_cast.hpp	2007-11-26 06:52:03 EST (Mon, 26 Nov 2007)
@@ -1180,7 +1180,13 @@
     template<typename Target, typename Source>
     Target lexical_cast(Source arg)
     {
-        detail::lexical_stream<Target, Source> interpreter;
+        typedef typename detail::widest_char< 
+            BOOST_DEDUCED_TYPENAME detail::stream_char<Target>::type 
+          , BOOST_DEDUCED_TYPENAME detail::stream_char<Source>::type 
+        >::type char_type; 
+
+        typedef std::char_traits<char_type> traits;
+        detail::lexical_stream<Target, Source, traits> interpreter;
         Target result;
 
         if(!(interpreter << arg && interpreter >> result))