diff options
author | robot-contrib <[email protected]> | 2022-08-11 13:54:19 +0300 |
---|---|---|
committer | robot-contrib <[email protected]> | 2022-08-11 13:54:19 +0300 |
commit | cb115da5bd299d34ba7b30bd545f0e924dbe38f1 (patch) | |
tree | ac72b0eceaae506b3c6242ec6d4692a8ee531450 | |
parent | 2e89520e2b7de06b4bb85bf99cf70efd28dda2bf (diff) |
Update contrib/restricted/boost/chrono to 1.80.0
-rw-r--r-- | contrib/restricted/boost/chrono/include/boost/chrono/duration.hpp | 9 |
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 0a09674f1a8..db8cccb25c2 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;} |