M
Markus Mauhart
Hi,
I get an unexpected complaint from the compiler:
--------------------------
enum E {e0,e1};
template <class tx ,E ty> struct A;
template <class tx> struct A <tx,e1> {};//OK
template <int tx ,E ty> struct B;
template <int tx> struct B <tx,e1> {};//OK
template <int& tx ,E ty> struct C;
template <int& tx> struct C <tx,e1> {};//error
//error C2755: 'C<T0,e1>' :
// non-type parameter of a partial specialization must be a simple identifier
--------------------------
Is this a compiler bug ?
Thanks,
Markus.
I get an unexpected complaint from the compiler:
--------------------------
enum E {e0,e1};
template <class tx ,E ty> struct A;
template <class tx> struct A <tx,e1> {};//OK
template <int tx ,E ty> struct B;
template <int tx> struct B <tx,e1> {};//OK
template <int& tx ,E ty> struct C;
template <int& tx> struct C <tx,e1> {};//error
//error C2755: 'C<T0,e1>' :
// non-type parameter of a partial specialization must be a simple identifier
--------------------------
Is this a compiler bug ?
Thanks,
Markus.