aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/restricted
diff options
context:
space:
mode:
authorrobot-contrib <robot-contrib@yandex-team.com>2022-08-11 13:54:19 +0300
committerrobot-contrib <robot-contrib@yandex-team.com>2022-08-11 13:54:19 +0300
commitcb115da5bd299d34ba7b30bd545f0e924dbe38f1 (patch)
treeac72b0eceaae506b3c6242ec6d4692a8ee531450 /contrib/restricted
parent2e89520e2b7de06b4bb85bf99cf70efd28dda2bf (diff)
downloadydb-cb115da5bd299d34ba7b30bd545f0e924dbe38f1.tar.gz
Update contrib/restricted/boost/chrono to 1.80.0
Diffstat (limited to 'contrib/restricted')
-rw-r--r--contrib/restricted/boost/chrono/include/boost/chrono/duration.hpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/contrib/restricted/boost/chrono/include/boost/chrono/duration.hpp b/contrib/restricted/boost/chrono/include/boost/chrono/duration.hpp
index 0a09674f1a..db8cccb25c 100644
--- a/contrib/restricted/boost/chrono/include/boost/chrono/duration.hpp
+++ b/contrib/restricted/boost/chrono/include/boost/chrono/duration.hpp
@@ -324,8 +324,8 @@ namespace detail
// //
//----------------------------------------------------------------------------//
//----------------------------------------------------------------------------//
-// 20.9.2.1 treat_as_floating_point [time.traits.is_fp] //
-// Probably should have been treat_as_floating_point. Editor notifed. //
+// 20.9.2.1 treat_as_floating_point [time.traits.is_fp] //
+// Probably should have been treat_as_floating_point. Editor notified. //
//----------------------------------------------------------------------------//
// Support bidirectional (non-exact) conversions for floating point rep types
@@ -463,9 +463,12 @@ namespace chrono {
if (&rhs != this) rep_= rhs.rep_;
return *this;
}
+ duration(const duration& rhs) : rep_(rhs.rep_) {}
#else
duration& operator=(const duration& rhs) = default;
+ duration(const duration&) = default;
#endif
+
// conversions
template <class Rep2, class Period2>
BOOST_FORCEINLINE BOOST_CONSTEXPR
@@ -490,7 +493,7 @@ namespace chrono {
// arithmetic
BOOST_CONSTEXPR
- duration operator+() const {return duration(rep_);;}
+ duration operator+() const {return duration(rep_);}
BOOST_CONSTEXPR
duration operator-() const {return duration(-rep_);}
duration& operator++() {++rep_; return *this;}