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:
+2
-2
@@ -575,7 +575,7 @@ protected:
|
|||||||
type m_data;
|
type m_data;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
atomic_t() = default;
|
atomic_t() noexcept = default;
|
||||||
|
|
||||||
atomic_t(const atomic_t&) = delete;
|
atomic_t(const atomic_t&) = delete;
|
||||||
|
|
||||||
@@ -584,7 +584,7 @@ public:
|
|||||||
// Define simple type
|
// Define simple type
|
||||||
using simple_type = simple_t<T>;
|
using simple_type = simple_t<T>;
|
||||||
|
|
||||||
explicit constexpr atomic_t(const type& value)
|
constexpr atomic_t(const type& value) noexcept
|
||||||
: m_data(value)
|
: m_data(value)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user