Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r86384 - trunk/libs/chrono/example
From: vicente.botet_at_[hidden]
Date: 2013-10-21 18:01:41


Author: viboes
Date: 2013-10-21 18:01:40 EDT (Mon, 21 Oct 2013)
New Revision: 86384
URL: http://svn.boost.org/trac/boost/changeset/86384

Log:
Chrono: try to avoid the crash with msvc 11 on chrono_io.

Text files modified:
   trunk/libs/chrono/example/io_ex1.cpp | 3 +++
   1 files changed, 3 insertions(+), 0 deletions(-)

Modified: trunk/libs/chrono/example/io_ex1.cpp
==============================================================================
--- trunk/libs/chrono/example/io_ex1.cpp Mon Oct 21 17:36:42 2013 (r86383)
+++ trunk/libs/chrono/example/io_ex1.cpp 2013-10-21 18:01:40 EDT (Mon, 21 Oct 2013) (r86384)
@@ -53,10 +53,13 @@
          << ClockTick(3) + nanoseconds(10) << '\n';
 
     cout << "\nsystem_clock::now() = " << system_clock::now() << '\n';
+#if defined _MSC_VER && _MSC_VER == 1700
+#else
 #if BOOST_CHRONO_VERSION==2
     cout << "\nsystem_clock::now() = " << time_fmt(chrono::timezone::local) << system_clock::now() << '\n';
     cout << "\nsystem_clock::now() = " << time_fmt(chrono::timezone::local,"%Y/%m/%d") << system_clock::now() << '\n';
 #endif
+#endif
 
 #ifdef BOOST_CHRONO_HAS_CLOCK_STEADY
     cout << "steady_clock::now() = " << steady_clock::now() << '\n';


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