Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67882 - trunk/libs/chrono/test/time_point
From: vicente.botet_at_[hidden]
Date: 2011-01-09 16:06:50


Author: viboes
Date: 2011-01-09 16:06:49 EST (Sun, 09 Jan 2011)
New Revision: 67882
URL: http://svn.boost.org/trac/boost/changeset/67882

Log:
Boost.Chrono: Extract the typeof use from this test. Other typeof specific tests must be added.

Text files modified:
   trunk/libs/chrono/test/time_point/time_point_cast_pass.cpp | 12 ++++++------
   1 files changed, 6 insertions(+), 6 deletions(-)

Modified: trunk/libs/chrono/test/time_point/time_point_cast_pass.cpp
==============================================================================
--- trunk/libs/chrono/test/time_point/time_point_cast_pass.cpp (original)
+++ trunk/libs/chrono/test/time_point/time_point_cast_pass.cpp 2011-01-09 16:06:49 EST (Sun, 09 Jan 2011)
@@ -28,12 +28,12 @@
     typedef boost::chrono::time_point<Clock, ToDuration> ToTimePoint;
     FromTimePoint f(df);
     ToTimePoint t(d);
-#if defined(BOOST_NO_DECLTYPE)
- typedef BOOST_TYPEOF_TPL(boost::chrono::time_point_cast<ToDuration>(f)) R;
-#else
- typedef decltype(boost::chrono::time_point_cast<ToDuration>(f)) R;
-#endif
- BOOST_CHRONO_STATIC_ASSERT((boost::is_same<R, ToTimePoint>::value), NOTHING, ());
+//~ #if defined(BOOST_NO_DECLTYPE)
+ //~ typedef BOOST_TYPEOF_TPL(boost::chrono::time_point_cast<ToDuration>(f)) R;
+//~ #else
+ //~ typedef decltype(boost::chrono::time_point_cast<ToDuration>(f)) R;
+//~ #endif
+ //~ BOOST_CHRONO_STATIC_ASSERT((boost::is_same<R, ToTimePoint>::value), NOTHING, ());
     BOOST_TEST(boost::chrono::time_point_cast<ToDuration>(f) == t);
 }
 


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