Article ID: 249045 - View products that this article applies to.
This article was previously published under Q249045
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
This C++ language feature has not yet been implemented in Visual C++.
To not use the pointer-to-member as a template argument, pass it as a parameter to the class constructor.
Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Use the following sample code to reproduce the behavior:
Article ID: 249045 - Last Review: July 5, 2005 - Revision: 1.1
Contact us for more help
Connect with Answer Desk for expert help.