Avoid Naked Union

To ensure safety, encapsulate the union within a class or struct.

Read more

Union in C++

A union is a special class type that can hold only one of its non-static data members at a time.

Read more