static constexpr

This commit is contained in:
Joachim Schoeberl 2021-06-28 01:07:03 +02:00
parent 31d5ce8be9
commit 91506aa71a

View File

@ -333,11 +333,11 @@ namespace ngcore
}
template <typename T, typename ... Trest>
constexpr size_t TotSize (T & first, Trest & ...rest) const
static constexpr size_t TotSize (T & first, Trest & ...rest)
{
return sizeof(first) + TotSize(rest...);
}
constexpr size_t TotSize () const { return 0; }
static constexpr size_t TotSize () { return 0; }
template <typename T, typename ... Trest>