3 ms·
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 const
by gpderetta 4y ago
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).