Article ID: 150885 - Last Review: July 5, 2005 - Revision: 1.1 FIX: C2321 Expanding Template with a Pointer to a Nested ClassThis article was previously published under Q150885 On This PageSYMPTOMS
At the point where a class template is expanded using the new operator
to a nested class, the compiler reports the following errors:
[FileName](10) : error C2321: syntax error : unexpected 'A::B'
[FileName](27) : fatal error C1004: unexpected end of file found
STATUSThis bug was corrected in Microsoft Visual C++, version 6.0. RESOLUTION
There are two possible workarounds to this problem. Each is stated in terms
of the sample code below:
Sample CodeAPPLIES TO
| Article Translations
|

Back to the top
