|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r74680 - trunk/boost/chrono
From: vicente.botet_at_[hidden]
Date: 2011-10-03 17:13:46
Author: viboes
Date: 2011-10-03 17:13:45 EDT (Mon, 03 Oct 2011)
New Revision: 74680
URL: http://svn.boost.org/trac/boost/changeset/74680
Log:
Chrono: Avoid operator== ambiguity
Text files modified:
trunk/boost/chrono/process_cpu_clocks.hpp | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
Modified: trunk/boost/chrono/process_cpu_clocks.hpp
==============================================================================
--- trunk/boost/chrono/process_cpu_clocks.hpp (original)
+++ trunk/boost/chrono/process_cpu_clocks.hpp 2011-10-03 17:13:45 EDT (Mon, 03 Oct 2011)
@@ -218,6 +218,16 @@
inline BOOST_CHRONO_CONSTEXPR
bool
operator==(const duration<process_times<Rep1>, Period1>& lhs,
+ const duration<process_times<Rep2>, Period2>& rhs)
+ {
+ return boost::chrono::detail::duration_eq<
+ duration<process_times<Rep1>, Period1>, duration<process_times<Rep2>, Period2> >()(lhs, rhs);
+ }
+
+ template <class Rep1, class Period1, class Rep2, class Period2>
+ inline BOOST_CHRONO_CONSTEXPR
+ bool
+ operator==(const duration<process_times<Rep1>, Period1>& lhs,
const duration<Rep2, Period2>& rhs)
{
return boost::chrono::detail::duration_eq<
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