Re: [Boost-bugs] [Boost C++ Libraries] #8328: chrono crashes visual studio 2012 regression tests

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8328: chrono crashes visual studio 2012 regression tests
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-10-21 22:00:01


#8328: chrono crashes visual studio 2012 regression tests
--------------------------------------+---------------------
  Reporter: Thomas Kent <teeks99@…> | Owner: viboes
      Type: Bugs | Status: closed
 Milestone: To Be Determined | Component: chrono
   Version: Boost Development Trunk | Severity: Problem
Resolution: wontfix | Keywords: io_ex
--------------------------------------+---------------------

Comment (by viboes):

 DO this patch avoids the crach


 {{{
 svn diff libs/chrono/example/io_ex1.cpp
 Index: libs/chrono/example/io_ex1.cpp
 ===================================================================
 --- libs/chrono/example/io_ex1.cpp (revision 86380)
 +++ libs/chrono/example/io_ex1.cpp (working copy)
 @@ -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';

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8328#comment:15>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:14 UTC