BUG: C2964 On Pointer-To-Member As Template Argument (249045)
The information in this article applies to:
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q249045 SYMPTOMS
The compiler generates an error such as the following when a pointer-to-member is used as a class template parameter.
error C2964: invalid expression as template parameter
CAUSE
This C++ language feature has not yet been implemented in Visual C++.
RESOLUTION
To not use the pointer-to-member as a template argument, pass it as a parameter to the class constructor.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 7/5/2005 |
---|
Keywords: | kbBug kbCompiler kbCPPonly kbLangCPP kbpending kbtemplate KB249045 |
---|
|