static_assert
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
|
||||
template <typename T>
|
||||
class PIStatistic {
|
||||
static_assert(std::is_arithmetic<T>::value, "Type must be arithmetic");
|
||||
public:
|
||||
PIStatistic() {mean = variance = skewness = kurtosis = T();}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user