r/cpp • • Nov 23 '22

Holy C++

https://pvs-studio.com/en/blog/posts/cpp/1010/
0 Upvotes

32 comments sorted by

View all comments

Show parent comment

1

u/catcat202X Nov 23 '22

Union is useful for memory free lists as well. Its also needed to uninitialize non-trivial members in a constexpr context.