Skip to content

Commit 3452bc7

Browse files
jensmaurertkoeppe
authored andcommitted
LWG3661 constinit atomic<shared_ptr<T>> a(nullptr); should work
1 parent 148fab5 commit 3452bc7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/atomics.tex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2801,6 +2801,7 @@
28012801
bool is_lock_free() const noexcept;
28022802

28032803
constexpr atomic() noexcept;
2804+
constexpr atomic(nullptr_t) noexcept : atomic() { }
28042805
atomic(shared_ptr<T> desired) noexcept;
28052806
atomic(const atomic&) = delete;
28062807
void operator=(const atomic&) = delete;

0 commit comments

Comments
 (0)