Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67904 - trunk/libs/chrono/test/duration
From: vicente.botet_at_[hidden]
Date: 2011-01-10 01:31:23


Author: viboes
Date: 2011-01-10 01:31:16 EST (Mon, 10 Jan 2011)
New Revision: 67904
URL: http://svn.boost.org/trac/boost/changeset/67904

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

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

Modified: trunk/libs/chrono/test/duration/duration_cast_pass.cpp
==============================================================================
--- trunk/libs/chrono/test/duration/duration_cast_pass.cpp (original)
+++ trunk/libs/chrono/test/duration/duration_cast_pass.cpp 2011-01-10 01:31:16 EST (Mon, 10 Jan 2011)
@@ -22,12 +22,12 @@
 void
 test(const FromDuration& f, const ToDuration& d)
 {
-#if defined(BOOST_NO_DECLTYPE)
- typedef BOOST_TYPEOF_TPL(boost::chrono::duration_cast<ToDuration>(f)) R;
-#else
- typedef decltype(boost::chrono::duration_cast<ToDuration>(f)) R;
-#endif
- BOOST_CHRONO_STATIC_ASSERT((boost::is_same<R, ToDuration>::value), NOTHING, (R, ToDuration));
+//~ #if defined(BOOST_NO_DECLTYPE)
+ //~ typedef BOOST_TYPEOF_TPL(boost::chrono::duration_cast<ToDuration>(f)) R;
+//~ #else
+ //~ typedef decltype(boost::chrono::duration_cast<ToDuration>(f)) R;
+//~ #endif
+ //~ BOOST_CHRONO_STATIC_ASSERT((boost::is_same<R, ToDuration>::value), NOTHING, (R, ToDuration));
     BOOST_TEST(boost::chrono::duration_cast<ToDuration>(f) == d);
 }
 


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