2

I have some errors when I ported code from MS VS to GCC.

template<size_t NB>
union TUnionBlock
{

    template<size_t I = 0>
    class Unroll
    {
    ....
    };

    template<>  // error: explicit specialization in non-namespace scope ‘union TUnionBlock<NB>’. unexpected token: >
    class Unroll<NB> // error: template parameters not used in partial specialization: error:         ‘NB’
    {
    ....
    };

};

What is wrong?

timrau
  • 22,578
  • 4
  • 51
  • 64
Drew
  • 23
  • 2

0 Answers0