Article ID: 128788
Article Last Modified on 10/2/2003
/* Compile options needed: /c
*/
typedef struct
{
int element;
} MyType;
template <class T1>
class AA
{
public:
static MyType m_mytype;
};
template <class T1> MyType AA<T1>::m_mytype = {0};
// Uncomment the following line to work around the problem.
// MyType AA<double>::m_mytype = {0};
AA<double> mydouble;
MyType mytype = mydouble.m_mytype;
Additional query words: 2.00 2.10 9.0 9.00 9.1 9.10
Keywords: kbbug kbcpponly kbcompiler KB128788