mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-20 02:55:47 +00:00
WrappedBinaryOperator now supports std::vector<bool>::reference
This commit is contained in:
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>
|
||||
|
Loading…
Reference in New Issue
Block a user