S
Sergio
Hi, here goes a very simple code, to me looks like everything is right,
but I see an error compiling with VC6..., does anyone has a clue for
what's wrong?
Thanks
template<int *INT_POINTER>
class ClassA
{
public:
static void P(){}
};
int a;
int x[3];
int main()
{
/*OK*/
ClassA<&a>:
();
/*error C2964: invalid expression as template parameter*/
ClassA<&x[0]>:
();
return 0;
}
but I see an error compiling with VC6..., does anyone has a clue for
what's wrong?
Thanks
template<int *INT_POINTER>
class ClassA
{
public:
static void P(){}
};
int a;
int x[3];
int main()
{
/*OK*/
ClassA<&a>:
/*error C2964: invalid expression as template parameter*/
ClassA<&x[0]>:
return 0;
}