C++ template nontype parameter arithmetic
- by aaa
hello
I am trying to specialize template the following way:
132 template<size_t _1,size_t _2>
131 struct integral_index_ {};
...
141 template<size_t _1>
142 struct integral_index_<_1, _1 + 1> {
...
148 };
however I get compiler message error
the template argument list of the partial specialization includes a non
-type argument whose type depends on a template parameter.
what do my doing wrong?
thanks