|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r65886 - sandbox/chrono/libs/ratio/example
From: vicente.botet_at_[hidden]
Date: 2010-10-10 13:00:28
Author: viboes
Date: 2010-10-10 13:00:25 EDT (Sun, 10 Oct 2010)
New Revision: 65886
URL: http://svn.boost.org/trac/boost/changeset/65886
Log:
Ratio:
* Refactor to public ratio_gcd
Text files modified:
sandbox/chrono/libs/ratio/example/duration.hpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: sandbox/chrono/libs/ratio/example/duration.hpp
==============================================================================
--- sandbox/chrono/libs/ratio/example/duration.hpp (original)
+++ sandbox/chrono/libs/ratio/example/duration.hpp 2010-10-10 13:00:25 EDT (Sun, 10 Oct 2010)
@@ -425,7 +425,7 @@
chrono::duration<Rep2, Period2> >
{
typedef chrono::duration<typename common_type<Rep1, Rep2>::type,
- typename boost::detail::ratio_gcd<Period1, Period2>::type> type;
+ typename boost::ratio_gcd<Period1, Period2>::type> type;
};
@@ -442,7 +442,7 @@
class duration
{
BOOST_EX_CHRONO_STATIC_ASSERT(!boost_ex::chrono::detail::is_duration<Rep>::value, BOOST_EX_CHRONO_A_DURATION_REPRESENTATION_CAN_NOT_BE_A_DURATION, ());
- BOOST_EX_CHRONO_STATIC_ASSERT(boost::detail::is_ratio<Period>::value, BOOST_EX_CHRONO_SECOND_TEMPLATE_PARAMETER_OF_DURATION_MUST_BE_A_STD_RATIO, ());
+ BOOST_EX_CHRONO_STATIC_ASSERT(boost::ratio_detail::is_ratio<Period>::value, BOOST_EX_CHRONO_SECOND_TEMPLATE_PARAMETER_OF_DURATION_MUST_BE_A_STD_RATIO, ());
BOOST_EX_CHRONO_STATIC_ASSERT(Period::num>0, BOOST_EX_CHRONO_DURATION_PERIOD_MUST_BE_POSITIVE, ());
public:
typedef Rep rep;
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