|
-
September 27th, 2002, 09:25 AM
#1
template won't compile - C2975
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|