Why doesn't Microsoft Visual C++ 7.0 want to compile this template:
template<char* p> class A
{
public:
char* f() { return p; }
};
A<"helo"> obj;
I get compiler error C2975 which briefly states that template needs a constant parameter for instantiation. Now, isnt "helo" a const design-time evaluated entity ?
I consider this another one of the "yet unimplemented" template features...sucks :(
has any of you come across c2975 before ?
Thanks,
Amn.
