-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
The std::variant is prone to generate very bad code. Every interaction with the value can throw an exception if the variant is in an invalid state. This exception path basically kills the optimizer.
There are alternative variant implementations like basicpp17/variant17 that are much better at the cost of an required dependency.
Before using this implementation it this should be done.