|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r65484 - sandbox/chrono/boost/chrono
From: vicente.botet_at_[hidden]
Date: 2010-09-20 11:48:13
Author: viboes
Date: 2010-09-20 11:48:11 EDT (Mon, 20 Sep 2010)
New Revision: 65484
URL: http://svn.boost.org/trac/boost/changeset/65484
Log:
Chrono cleanup
Text files modified:
sandbox/chrono/boost/chrono/duration.hpp | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
Modified: sandbox/chrono/boost/chrono/duration.hpp
==============================================================================
--- sandbox/chrono/boost/chrono/duration.hpp (original)
+++ sandbox/chrono/boost/chrono/duration.hpp 2010-09-20 11:48:11 EDT (Mon, 20 Sep 2010)
@@ -406,16 +406,10 @@
template <class Rep>
struct duration_values
{
- static BOOST_CHRONO_CONSTEXPR Rep m_min_imp(boost::false_type) {return -max BOOST_PREVENT_MACRO_SUBSTITUTION ();}
- static BOOST_CHRONO_CONSTEXPR Rep m_min_imp(boost::true_type) {return zero();}
- public:
static BOOST_CHRONO_CONSTEXPR Rep zero() {return Rep(0);}
- //~ static const Rep const_zero = Rep(0);
static BOOST_CHRONO_CONSTEXPR Rep max BOOST_PREVENT_MACRO_SUBSTITUTION () {return (std::numeric_limits<Rep>::max)();}
- //~ static const Rep const_max = integer_traits<Rep>::const_max;
- //~ static BOOST_CHRONO_CONSTEXPR Rep min BOOST_PREVENT_MACRO_SUBSTITUTION () {return m_min_imp(boost::is_unsigned<Rep>());}
+
static BOOST_CHRONO_CONSTEXPR Rep min BOOST_PREVENT_MACRO_SUBSTITUTION () {return detail::numeric_limits<Rep>::lowest();}
- //~ static const Rep const_min = integer_traits<Rep>::const_min;
};
} // namespace chrono
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