Skip to content

Fix issue with Variant::CastAndCall with non-const reference

Kenneth Moreland requested to merge kmorel/vtk-m:variant-cast-call-ref into master

There was a typo in the declaration of the CastAndCall for a non-const Variant. When determining the noexcept status of the function being called, it was passing in a const reference instead of a regular reference, which is what is actually passed to the function. This potentially causes the function call to not match and fail to compile.

Merge request reports