Edit

Share via


Warning C26476

Expression/symbol 'name' uses a naked union 'union' with multiple type pointers: Use variant instead (type.7)

Remarks

std::variant provides a type-safe alternative to union and should be preferred in modern code.

Code analysis name: USE_VARIANT

See also

C++ Core Guideline C.181