Article ID: 128789
Article Last Modified on 7/5/2005
/* Compile options needed: None.
*/
#include <stdio.h>
template <class T1, class T2>
class AA
{
public:
class BB
{
public:
int Function();
// Work around #1, replace the previous line with
// int Function() { return 0; }
};
};
// Work around #2, uncomment the following function
// AA<int,int>::BB::Function()
// {
// return 0;
// }
template <class T1, class T2>
int AA<T1,T2>::BB::Function()
{
return 0;
}
void main()
{
AA<int,int>::BB b;
printf( "%d\n", b.Function() );
}
Additional query words: 9.0 9.00 9.1 9.10 10.00 10.10 10.20
Keywords: kbbug kbcpponly kbpending kbcompiler KB128789