You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: