Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49721 - in sandbox/chrono: boost boost/type_traits libs/chrono/example libs/chrono/src
From: bdawes_at_[hidden]
Date: 2008-11-13 12:19:16


Author: bemandawes
Date: 2008-11-13 12:19:16 EST (Thu, 13 Nov 2008)
New Revision: 49721
URL: http://svn.boost.org/trac/boost/changeset/49721

Log:
Chrono: Fix DLL issues, clear time2_demo warning, silence typeof compiler message
Text files modified:
   sandbox/chrono/boost/chrono.hpp | 4 ++--
   sandbox/chrono/boost/type_traits/common_type.hpp | 1 +
   sandbox/chrono/libs/chrono/example/time2_demo.cpp | 2 +-
   sandbox/chrono/libs/chrono/src/chrono.cpp | 4 ++++
   4 files changed, 8 insertions(+), 3 deletions(-)

Modified: sandbox/chrono/boost/chrono.hpp
==============================================================================
--- sandbox/chrono/boost/chrono.hpp (original)
+++ sandbox/chrono/boost/chrono.hpp 2008-11-13 12:19:16 EST (Thu, 13 Nov 2008)
@@ -173,8 +173,8 @@
   time_point<Clock, ToDuration> time_point_cast(const time_point<Clock, Duration>& t);
 
   // Clocks
- class system_clock;
- class monotonic_clock;
+ class BOOST_CHRONO_DECL system_clock;
+ class BOOST_CHRONO_DECL monotonic_clock;
   typedef monotonic_clock high_resolution_clock; // as permitted by [time.clock.hires]
 
 //----------------------------------------------------------------------------//

Modified: sandbox/chrono/boost/type_traits/common_type.hpp
==============================================================================
--- sandbox/chrono/boost/type_traits/common_type.hpp (original)
+++ sandbox/chrono/boost/type_traits/common_type.hpp 2008-11-13 12:19:16 EST (Thu, 13 Nov 2008)
@@ -11,6 +11,7 @@
 
 #define BOOST_VARIADIC_COMMON_TYPE 0
 
+#define BOOST_TYPEOF_SILENT
 #include <boost/typeof/typeof.hpp> // boost wonders never cease!
 
 //----------------------------------------------------------------------------//

Modified: sandbox/chrono/libs/chrono/example/time2_demo.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/example/time2_demo.cpp (original)
+++ sandbox/chrono/libs/chrono/example/time2_demo.cpp 2008-11-13 12:19:16 EST (Thu, 13 Nov 2008)
@@ -943,7 +943,7 @@
         long long r = rhs.tv_sec * 1000000 + rhs.tv_usec;
         t %= r;
         tv_sec = static_cast<long>(t / 1000000);
- tv_usec = t % 1000000;
+ tv_usec = static_cast<long>(t % 1000000);
         fixup();
         return *this;
     }

Modified: sandbox/chrono/libs/chrono/src/chrono.cpp
==============================================================================
--- sandbox/chrono/libs/chrono/src/chrono.cpp (original)
+++ sandbox/chrono/libs/chrono/src/chrono.cpp 2008-11-13 12:19:16 EST (Thu, 13 Nov 2008)
@@ -5,6 +5,10 @@
 // Distributed under the Boost Software License, Version 1.0.
 // See http://www.boost.org/LICENSE_1_0.txt
 
+// define BOOST_CHRONO_SOURCE so that <boost/filesystem/config.hpp> knows
+// the library is being built (possibly exporting rather than importing code)
+#define BOOST_CHRONO_SOURCE
+
 #include <boost/chrono.hpp>
 #include <stdexcept>
 


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