0

I see a construction like this:

template<>
struct AliItemCalc< 0 >
{

}

What does zero mean?

EDIT before this there is a definition:

template <int N>
struct AliItemCalc
{
private:
    static constexpr unsigned a1 = 4096;
    static constexpr unsigned s = AliItemCalc<N-1>::m;
    static constexpr unsigned v = a1 * (s & 0xFFFF);

public:
    static constexpr unsigned m = v;
};
Clespo10004
  • 3
  • 1
  • 2
  • 3
    This looks like a template specialization, though that would require a previous definition of a `AliItemCalc` class template – UnholySheep Mar 16 '22 at 13:06
  • Likely, there is a previous definition `template struct AliItemCalc { ... };`. If so, you should also post that. – chi Mar 16 '22 at 13:09

0 Answers0