From 11e297c9755301a80300bde36e4952565f48dcea Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Wed, 19 Sep 2018 14:07:38 +0300 Subject: [PATCH] Remove explicit in atomic_t constructor Match with std::atomic C++17 now allows writing std::atomic x = 3; --- Utilities/Atomic.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Utilities/Atomic.h b/Utilities/Atomic.h index e43c472125..90af693df2 100644 --- a/Utilities/Atomic.h +++ b/Utilities/Atomic.h @@ -575,7 +575,7 @@ protected: type m_data; public: - atomic_t() = default; + atomic_t() noexcept = default; atomic_t(const atomic_t&) = delete; @@ -584,7 +584,7 @@ public: // Define simple type using simple_type = simple_t; - explicit constexpr atomic_t(const type& value) + constexpr atomic_t(const type& value) noexcept : m_data(value) { }