-
Notifications
You must be signed in to change notification settings - Fork 269
[BUG] enum should be trivial #1435
Open
Description
Enumeration in C++1 is trivial; it should be trivial in C++2 as well.
// cpp1 enum class Foo { A, B, C, }; // cpp2 Bar: @enum type = { A; B; C; } main: () = { static_assert(std::is_trivial_v<Foo>, "Foo is not trivial D:"); // ok static_assert(std::is_trivial_v<Bar>, "Bar is not trivial D:"); // not ok }