Skip to content

Commit

Permalink
wording
Browse files Browse the repository at this point in the history
Signed-off-by: Valentyn Yukhymenko <[email protected]>
  • Loading branch information
BaLiKfromUA committed Nov 23, 2024
1 parent bc70064 commit a8ab620
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ static_assert(is_type(define_aggregate(^^S2, {

} // namespace repeat_calls

namespace non_trivial_constructor_and_destructor {
namespace non_trivial_constructor_and_destructor_of_union_members {
// https://github.com/bloomberg/clang-p2996/issues/115

// all members of union are trivially constructible and destructible
Expand All @@ -322,7 +322,7 @@ static_assert(std::is_trivially_constructible<U>::value == true);
static_assert(std::is_destructible<U>::value == true);
static_assert(std::is_trivially_destructible<U>::value == true);

// at least one member of union has non-trivial constructor and destructor
// at least one member of union has non-trivial constructor or destructor
struct A {
constexpr A() {
// no-op
Expand Down

0 comments on commit a8ab620

Please sign in to comment.