mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-08 13:23:51 +00:00
Previously, if you called `Get` on a `Variant` with a type that is not in the list of types supported by the `Variant`, that would attempt to look up the type at index `-1` and could spin the compiler into an endless loop. Instead, check for the case where you are attempting to get a type from the `Variant` not listed in its templat arguments. In this case, instead of producing a compiler error, produce a runtime error. Although this increases the possibility that a bad compile path is being generated, it simplifies creating templated code that produces cases we don't care about. |
||
---|---|---|
.. | ||
testing | ||
.gitattributes | ||
CMakeLists.txt | ||
ErrorMessageBuffer.h | ||
FastVec.h | ||
ReduceByKeyLookup.h | ||
TaskSingular.h | ||
TwoLevelUniformGridExecutionObject.h | ||
Variant.h | ||
WorkletInvokeFunctorDetail.h | ||
WorkletInvokeFunctorDetail.h.in |