Skip to content

LWG-3949 atomic<bool>'s trivial destructor dropped in C++17 spec wording #4164

@StephanTLavavej

Description

@StephanTLavavej

LWG-3949 atomic<bool>'s trivial destructor dropped in C++17 spec wording

This is already implemented and tested, we just need to drop "(and bool)" from this comment:

STATIC_ASSERT(is_trivially_destructible_v<atomic<Bytes<1>>>); // these struct cases (and bool)
STATIC_ASSERT(is_trivially_destructible_v<atomic<Bytes<2>>>); // aren't technically required to work
STATIC_ASSERT(is_trivially_destructible_v<atomic<Bytes<3>>>); // in the spec, but we think they should
STATIC_ASSERT(is_trivially_destructible_v<atomic<Bytes<4>>>); // on any reasonable implementation
STATIC_ASSERT(is_trivially_destructible_v<atomic<Bytes<5>>>);
STATIC_ASSERT(is_trivially_destructible_v<atomic<Bytes<6>>>);
STATIC_ASSERT(is_trivially_destructible_v<atomic<Bytes<7>>>);
STATIC_ASSERT(is_trivially_destructible_v<atomic<Bytes<8>>>);
STATIC_ASSERT(is_trivially_destructible_v<atomic<Bytes<9>>>);
STATIC_ASSERT(is_trivially_destructible_v<atomic<bool>>);

Metadata

Metadata

Assignees

No one assigned

    Labels

    LWGLibrary Working Group issuefixedSomething works now, yay!

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions