Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r68399 - trunk/boost/chrono
From: vicente.botet_at_[hidden]
Date: 2011-01-23 12:51:47


Author: viboes
Date: 2011-01-23 12:51:41 EST (Sun, 23 Jan 2011)
New Revision: 68399
URL: http://svn.boost.org/trac/boost/changeset/68399

Log:
Boost.Chrono: Try to solve some msvc9.0 issues related to enable_if on duration overloading

Text files modified:
   trunk/boost/chrono/duration.hpp | 11 +++--------
   1 files changed, 3 insertions(+), 8 deletions(-)

Modified: trunk/boost/chrono/duration.hpp
==============================================================================
--- trunk/boost/chrono/duration.hpp (original)
+++ trunk/boost/chrono/duration.hpp 2011-01-23 12:51:41 EST (Sun, 23 Jan 2011)
@@ -429,9 +429,9 @@
 
         BOOST_CHRONO_CONSTEXPR
         duration() { }
-//#if defined(BOOST_MSVC) && (BOOST_MSVC == 1500)
-// duration(const rep& r) : rep_(r) { }
-//#endif
+#if defined(BOOST_MSVC) && (BOOST_MSVC == 1500)
+ duration(const rep& r) : rep_(r) { }
+#endif
         template <class Rep2>
         BOOST_CHRONO_CONSTEXPR
         explicit duration(const Rep2& r,
@@ -457,11 +457,6 @@
         }
 
         // conversions
-//#if defined(BOOST_MSVC) && (BOOST_MSVC == 1500)
-// BOOST_CHRONO_CONSTEXPR
-// duration(const duration& d)
-// : rep_(d.rep_) {}
-//#endif
         template <class Rep2, class Period2>
         BOOST_CHRONO_CONSTEXPR
         duration(const duration<Rep2, Period2>& 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