Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82541 - in trunk: boost/chrono boost/chrono/io libs/chrono/doc
From: vicente.botet_at_[hidden]
Date: 2013-01-18 16:59:09


Author: viboes
Date: 2013-01-18 16:59:08 EST (Fri, 18 Jan 2013)
New Revision: 82541
URL: http://svn.boost.org/trac/boost/changeset/82541

Log:
Chrono: fixed 7868 + some warnings
Text files modified:
   trunk/boost/chrono/config.hpp | 2 +-
   trunk/boost/chrono/io/duration_io.hpp | 1 -
   trunk/boost/chrono/io/time_point_io.hpp | 2 +-
   trunk/libs/chrono/doc/chrono.qbk | 32 ++++++++++++++++++++++++--------
   4 files changed, 26 insertions(+), 11 deletions(-)

Modified: trunk/boost/chrono/config.hpp
==============================================================================
--- trunk/boost/chrono/config.hpp (original)
+++ trunk/boost/chrono/config.hpp 2013-01-18 16:59:08 EST (Fri, 18 Jan 2013)
@@ -28,7 +28,7 @@
 #if ! defined BOOST_CHRONO_PROVIDES_DATE_IO_FOR_SYSTEM_CLOCK_TIME_POINT \
     && ! defined BOOST_CHRONO_DONT_PROVIDE_DATE_IO_FOR_SYSTEM_CLOCK_TIME_POINT
 
-# define BOOST_CHRONO_DONT_PROVIDE_DATE_IO_FOR_SYSTEM_CLOCK_TIME_POINT
+# define BOOST_CHRONO_PROVIDES_DATE_IO_FOR_SYSTEM_CLOCK_TIME_POINT
 
 #endif
 

Modified: trunk/boost/chrono/io/duration_io.hpp
==============================================================================
--- trunk/boost/chrono/io/duration_io.hpp (original)
+++ trunk/boost/chrono/io/duration_io.hpp 2013-01-18 16:59:08 EST (Fri, 18 Jan 2013)
@@ -121,7 +121,6 @@
     std::basic_ostream<CharT, Traits>&
     operator<<(std::basic_ostream<CharT, Traits>& os, const duration<Rep, Period>& d)
     {
- typedef std::basic_string<CharT, Traits> string_type;
       bool failed = false;
       BOOST_TRY
       {

Modified: trunk/boost/chrono/io/time_point_io.hpp
==============================================================================
--- trunk/boost/chrono/io/time_point_io.hpp (original)
+++ trunk/boost/chrono/io/time_point_io.hpp 2013-01-18 16:59:08 EST (Fri, 18 Jan 2013)
@@ -541,7 +541,6 @@
     operator<<(std::basic_ostream<CharT, Traits>& os, const time_point<Clock, Duration>& tp)
     {
 
- typedef std::basic_string<CharT, Traits> string_type;
       bool failed = false;
       BOOST_TRY
       {
@@ -936,6 +935,7 @@
             { '%', 'Y', '-', '%', 'm', '-', '%', 'd', ' ', '%', 'H', ':', '%', 'M', ':' };
             pb = pattern;
             pe = pb + sizeof (pattern) / sizeof(CharT);
+ tm.tm_sec=0;
 #if defined BOOST_CHRONO_USES_INTERNAL_TIME_GET
             const detail::time_get<CharT>& dtg(tg);
             dtg.get(is, 0, is, err, &tm, pb, pe);

Modified: trunk/libs/chrono/doc/chrono.qbk
==============================================================================
--- trunk/libs/chrono/doc/chrono.qbk (original)
+++ trunk/libs/chrono/doc/chrono.qbk 2013-01-18 16:59:08 EST (Fri, 18 Jan 2013)
@@ -1419,7 +1419,7 @@
 
 [section:system_clock_time_point_io `system_clock::time_point`]
 
-[warning
+[/warning
 
 This feature has been disable defining `BOOST_CHRONO_DONT_PROVIDE_DATE_IO_FOR_SYSTEM_CLOCK_TIME_POINT` until a fix for the following ticket is found:
 
@@ -2600,7 +2600,7 @@
 
 [section:system_clock_time_point time_point<system_clock,D> specialization limitation]
 
-[warning
+[/warning
 
 The time_point<system_clock,D> formatter/parser specializations don't work yet. It has been disable defining `BOOST_CHRONO_DONT_PROVIDE_DATE_IO_FOR_SYSTEM_CLOCK_TIME_POINT` until a fix for the following ticket is found:
 
@@ -6337,9 +6337,7 @@
         };
 
         // system_clock I/O
-
- #if defined BOOST_CHRONO_PROVIDES_DATE_IO_FOR_SYSTEM_CLOCK_TIME_POINT
-
+
         template <class CharT, class Traits, class __Duration>
           basic_ostream<CharT, Traits>&
           operator<<(basic_ostream<CharT, Traits>& os,
@@ -6349,7 +6347,6 @@
           basic_istream<CharT, Traits>&
           operator>>(basic_istream<CharT, Traits>& is,
                      time_point<system_clock, __Duration>& tp);
- #endif
     
         // Other Clocks I/O
 
@@ -6400,7 +6397,7 @@
 
 [section:system_clock `system_clock`]
 
-[warning
+[/warning
 
 The time_point<system_clock,D> formatter/parser specializations don't work yet. It has been disable defining `BOOST_CHRONO_DONT_PROVIDE_DATE_IO_FOR_SYSTEM_CLOCK_TIME_POINT` until a fix for the following ticket is found:
 
@@ -7325,6 +7322,25 @@
 [section:history Appendix: History]
 [/==================================]
 
+[//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////]
+[section [*Version 2.0.1, January 18, 2013 - 1.53] ]
+
+[*Deprecated:]
+
+* The chrono i/o version included in Boost.Chrono 1.2.x has been completly refactored in version 2.0.0
+* chrono I/O: The manipulators __duration_short, __duration_long are depreceated. You should use the parameterized form __duration_fmt or the renamed manipulators __duration_symbol and __duration_prefix instead.
+* chrono I/O: The __duration_punct<> facet is depreceated. You should use the __get_duration_style free function to get the informations and use the __duration_units facet for localization purposes.
+
+When BOOST_CHRONO_VERSION==2 the preceding deprecated functions are not available.
+
+[*Fixes:]
+
+* [@http://svn.boost.org/trac/boost/ticket/7546 #7546] time_point<system_clock> output version 2 fails to compile assigned viboes Bugs Boost 1.53.0 --
+* [@http://svn.boost.org/trac/boost/ticket/7547 #7547] time_point<system_clock> input version 2 fails to compile assigned viboes Bugs Boost 1.53.0 --
+* [@http://svn.boost.org/trac/boost/ticket/7868 #7868] chrono_io parses time incorrectly (1.53 and 1.52)
+
+
+[endsect] [/section [*Version 2.0.1] ]
 
 [//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////]
 [section [*Version 2.0.0, October 23, 2012 - 1.52] ]
@@ -7361,7 +7377,7 @@
 
 * [@http://svn.boost.org/trac/boost/ticket/7525 #7525] Wrong clock_string<system_clock>::since() on Windows
 
-[warning
+[/warning
 
 The time_point<system_clock,D> formatter/parser specializations don't work yet. It has been disable defining `BOOST_CHRONO_DONT_PROVIDE_DATE_IO_FOR_SYSTEM_CLOCK_TIME_POINT` until a fix for the following ticket is found:
 


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