WrappedBinaryOperator now supports std::vector<bool>::reference

This commit is contained in:
Robert Maynard 2018-07-23 14:24:19 -04:00
parent 8a44d0a5ae
commit d595abf907

@ -54,7 +54,7 @@ struct WrappedBinaryOperator
template <typename Argument1, typename Argument2>
VTKM_CONT ResultType operator()(const Argument1& x, const Argument2& y) const
{
return m_f(x, y);
return m_f(x, (Argument1)y); //needed cast for things like std::vector<bool>::reference
}
template <typename Argument1, typename Argument2>