From da8f3943980c6e708adff745d7a3213ffc8b942e Mon Sep 17 00:00:00 2001 From: Antonin Portelli Date: Wed, 28 Jan 2015 17:21:07 +0000 Subject: [PATCH] Function: function call fix --- lib/Function.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Function.hpp b/lib/Function.hpp index 9604f48..9f9b2ff 100644 --- a/lib/Function.hpp +++ b/lib/Function.hpp @@ -82,10 +82,10 @@ private: template double DoubleFunction::operator()(const double arg0, const Ts... args) const { - static_assert(static_or::value...>::value, + static_assert(static_or::value...>::value, "DoubleFunction arguments are not compatible with double"); - - const double arg[] = {arg0, args...}; + + const double arg[] = {arg0, static_cast(args)...}; checkSize(sizeof...(args) + 1);