diff --git a/src/engine/sparqlExpressions/NumericBinaryExpressions.cpp b/src/engine/sparqlExpressions/NumericBinaryExpressions.cpp index d494a93d34..e5852a6add 100644 --- a/src/engine/sparqlExpressions/NumericBinaryExpressions.cpp +++ b/src/engine/sparqlExpressions/NumericBinaryExpressions.cpp @@ -34,13 +34,11 @@ inline auto subtract = makeNumericExpression>(); NARY_EXPRESSION(SubtractExpression, 2, FV); -// Power -struct powOp { - constexpr double operator()(const double base, const double exp) { - return std::pow(base, exp); - } +// Power. +inline auto powImpl = [](double base, double exp) { + return std::pow(base, exp); }; -inline auto pow = makeNumericExpression(); +inline auto pow = makeNumericExpression(); NARY_EXPRESSION(PowExpression, 2, FV); // Or