1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2024-11-10 08:55:37 +00:00

Function: function call fix

This commit is contained in:
Antonin Portelli 2015-01-28 17:21:07 +00:00
parent c1b8597ecc
commit da8f394398

View File

@ -82,10 +82,10 @@ private:
template <typename... Ts>
double DoubleFunction::operator()(const double arg0, const Ts... args) const
{
static_assert(static_or<std::is_trivially_assignable<double, Ts>::value...>::value,
static_assert(static_or<std::is_convertible<double, Ts>::value...>::value,
"DoubleFunction arguments are not compatible with double");
const double arg[] = {arg0, args...};
const double arg[] = {arg0, static_cast<double>(args)...};
checkSize(sizeof...(args) + 1);