Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75428 - trunk/boost/chrono/io
From: vicente.botet_at_[hidden]
Date: 2011-11-09 16:53:51


Author: viboes
Date: 2011-11-09 16:53:50 EST (Wed, 09 Nov 2011)
New Revision: 75428
URL: http://svn.boost.org/trac/boost/changeset/75428

Log:
Chrono: Added traces totry to catch duration_get issue on intel 11.
Text files modified:
   trunk/boost/chrono/io/duration_get.hpp | 9 +++++++--
   1 files changed, 7 insertions(+), 2 deletions(-)

Modified: trunk/boost/chrono/io/duration_get.hpp
==============================================================================
--- trunk/boost/chrono/io/duration_get.hpp (original)
+++ trunk/boost/chrono/io/duration_get.hpp 2011-11-09 16:53:50 EST (Wed, 09 Nov 2011)
@@ -289,6 +289,7 @@
 
         //if (r > ( (duration_values<common_type_t>::max)() / num))
         if (chrono::detail::gt(r,((duration_values<common_type_t>::max)() / num)))
+ //if (common_type_t(r) > ( (duration_values<common_type_t>::max)() / num))
         {
           // Conversion to Period overflowed
           err |= std::ios_base::failbit;
@@ -310,7 +311,6 @@
         r = Rep(t);
         d = duration<Rep, Period> (r);
 
-
         return s;
       }
 
@@ -467,8 +467,10 @@
       virtual iter_type do_get_prefix_unit(iter_type i, iter_type e, std::ios_base& is, std::ios_base::iostate& err,
           detail::rt_ratio &rt) const
       {
+ std::cerr << __FILE__ << ":" << __LINE__ << " " << std::endl;
         duration_units<CharT> const &facet = duration_units<CharT>::imbue_if_has_not(is);
 
+
         // parse SI name, short or long
         std::size_t pfs = facet.get_plural_forms()+1;
 
@@ -497,12 +499,13 @@
 
         string_type* units_end= units +19*pfs;
 
-
         err = std::ios_base::goodbit;
+ std::cerr << __FILE__ << ":" << __LINE__ << " " << std::endl;
         const string_type* k = chrono_detail::scan_keyword(i, e, units,
             units_end,
             //~ std::use_facet<std::ctype<CharT> >(loc),
             err);
+ std::cerr << __FILE__ << ":" << __LINE__ << " err" << err << std::endl;
 
         std::size_t index = (k - units) / pfs;
         delete []units;
@@ -570,6 +573,8 @@
           std::cout << __FILE__ << ":" << __LINE__ << std::endl;
           return i;
         }
+ std::cerr << __FILE__ << ":" << __LINE__ << " " << std::endl;
+
         return i;
 
       }


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