Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74692 - trunk/libs/chrono/test/io
From: vicente.botet_at_[hidden]
Date: 2011-10-04 08:29:40


Author: viboes
Date: 2011-10-04 08:29:40 EDT (Tue, 04 Oct 2011)
New Revision: 74692
URL: http://svn.boost.org/trac/boost/changeset/74692

Log:
Chrono: replace deprecated duration_short/duration_long
Text files modified:
   trunk/libs/chrono/test/io/duration_output.cpp | 2 +-
   trunk/libs/chrono/test/io/time_point_output.cpp | 2 +-
   2 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/libs/chrono/test/io/duration_output.cpp
==============================================================================
--- trunk/libs/chrono/test/io/duration_output.cpp (original)
+++ trunk/libs/chrono/test/io/duration_output.cpp 2011-10-04 08:29:40 EDT (Tue, 04 Oct 2011)
@@ -19,7 +19,7 @@
 void test_good_symbol(const char* str, D d)
 {
   std::ostringstream out;
- out << boost::chrono::duration_short << d;
+ out << boost::chrono::duration_fmt(boost::chrono::duration_style::symbol) << d;
   BOOST_TEST(out.good());
   BOOST_TEST(out.str() == str);
 }

Modified: trunk/libs/chrono/test/io/time_point_output.cpp
==============================================================================
--- trunk/libs/chrono/test/io/time_point_output.cpp (original)
+++ trunk/libs/chrono/test/io/time_point_output.cpp 2011-10-04 08:29:40 EDT (Tue, 04 Oct 2011)
@@ -21,7 +21,7 @@
 {
   std::ostringstream out;
   boost::chrono::time_point<Clock,D> tp(d);
- out << boost::chrono::duration_short << tp;
+ out << boost::chrono::duration_fmt(boost::chrono::duration_style::symbol) << tp;
   BOOST_TEST(out.good());
   BOOST_TEST((out.str() == std::string(str)+boost::chrono::clock_string<Clock,char>::since()));
 }


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