template<typename T, T Min>
class LowerBoundedType {};
template<typename T> class vectorelement {};
template<> class vectorelement<Categorical> { typedef LowerBoundedType<double, 0.0> type; };
with error:
error: 'double' is not a valid type for a template constant parameter
The only numeric types valid for a nontype template parameter are integers and enumerations. So, you can't have a nontype template parameter of type double
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With