Remove explicit in atomic_t constructor

Match with std::atomic
C++17 now allows writing std::atomic<int> x = 3;
This commit is contained in:
Nekotekina 2018-09-19 14:07:38 +03:00
parent 9a457400e7
commit 11e297c975
1 changed files with 2 additions and 2 deletions

View File

@ -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<T>;
explicit constexpr atomic_t(const type& value)
constexpr atomic_t(const type& value) noexcept
: m_data(value)
{
}