News for hackers. Stuff that matters.
Re:Switching from C++ to Rust by gpderetta on Monday March 13, 2023 @10:33PM (#35146627)
You can have non trivial types in an union, but you need to explicitly define constructor in the union or the containing type (i.e. the default union copy constructor and assignment operator are disabled).

There are no comments on this comment yet.