Remove useless "explicit", and fix inline/static order.

This commit is contained in:
Gael Guennebaud
2015-12-11 10:59:39 +01:00
parent 79c1e6d0a6
commit 30b5c4cd14
5 changed files with 6 additions and 6 deletions

2
Eigen/src/Core/VectorwiseOp.h Normal file → Executable file
View File

@@ -115,7 +115,7 @@ struct member_lpnorm {
typedef ResultType result_type;
template<typename Scalar, int Size> struct Cost
{ enum { value = (Size+5) * NumTraits<Scalar>::MulCost + (Size-1)*NumTraits<Scalar>::AddCost }; };
EIGEN_DEVICE_FUNC explicit member_lpnorm() {}
EIGEN_DEVICE_FUNC member_lpnorm() {}
template<typename XprType>
EIGEN_DEVICE_FUNC inline ResultType operator()(const XprType& mat) const
{ return mat.template lpNorm<p>(); }