|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r80536 - trunk/boost/chrono
From: vicente.botet_at_[hidden]
Date: 2012-09-16 04:23:46
Author: viboes
Date: 2012-09-16 04:23:42 EDT (Sun, 16 Sep 2012)
New Revision: 80536
URL: http://svn.boost.org/trac/boost/changeset/80536
Log:
Chrono: remove duration copy constructor so default applies: issue #7381
Text files modified:
trunk/boost/chrono/duration.hpp | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
Modified: trunk/boost/chrono/duration.hpp
==============================================================================
--- trunk/boost/chrono/duration.hpp (original)
+++ trunk/boost/chrono/duration.hpp 2012-09-16 04:23:42 EDT (Sun, 16 Sep 2012)
@@ -417,7 +417,7 @@
namespace chrono {
template <class Rep, class Period>
- class duration
+ class BOOST_SYMBOL_VISIBLE duration
{
//BOOST_CHRONO_STATIC_ASSERT(boost::is_integral<Rep>::value, BOOST_CHRONO_A_DURATION_REPRESENTATION_MUST_BE_INTEGRAL, ());
BOOST_CHRONO_STATIC_ASSERT(!boost::chrono::detail::is_duration<Rep>::value,
@@ -436,7 +436,7 @@
BOOST_CONSTEXPR
duration() : rep_(duration_values<rep>::zero()) { }
template <class Rep2>
- BOOST_CONSTEXPR
+ BOOST_SYMBOL_VISIBLE inline BOOST_CONSTEXPR
explicit duration(const Rep2& r
, typename boost::enable_if <
mpl::and_ <
@@ -452,8 +452,7 @@
>::type* = 0
) : rep_(r) { }
//~duration() {} //= default;
- BOOST_CONSTEXPR
- duration(const duration& rhs) : rep_(rhs.rep_) {} // = default;
+// BOOST_CONSTEXPR duration(const duration& rhs) : rep_(rhs.rep_) {} // = default;
duration& operator=(const duration& rhs) // = default;
{
if (&rhs != this) rep_= rhs.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