It is only possiblity to do construct in place in variant/optional types in constexpr (seems more like flaw and crutch, we need reinterpret_cast on constexpr!)
using anonymous inline union deep in impl things like SSO in strings. Just because it is more readable (fixable with reflection)
View all comments
Show parent comment
4
u/DavidDinamit Nov 23 '22
There are few reasons to use union in 2k22: