diff --git a/Eigen/src/Core/functors/BinaryFunctors.h b/Eigen/src/Core/functors/BinaryFunctors.h index 71f894eaf..fc878155a 100644 --- a/Eigen/src/Core/functors/BinaryFunctors.h +++ b/Eigen/src/Core/functors/BinaryFunctors.h @@ -206,7 +206,10 @@ struct functor_traits > { enum { Cost = (NumTraits::AddCost+NumTraits::AddCost)/2, PacketAccess = is_same::value && - packet_traits::HasCmp + packet_traits::HasCmp && + // Since return type is bool, we currently require the inputs + // to be bool to enable packet access. + is_same::value }; };