Article ID: 128213
Article Last Modified on 10/2/2003
b.GetClassA().problem(10); // error
a = b.GetClassA(); // work-around
a.problem(10);
where a is an instance of class A, b is an instance of class B
based on the sample code below.
-or-
/* Compile options needed: none
*/
class A
{
public:
~A() {}
static void problem(int a) {}
};
class B
{
public:
A GetClassA();
};
void main()
{
B b;
b.GetClassA().problem(10);
}
Additional query words: 2.00 2.10 2.20 9.00 9.10
Keywords: kbbug kbfix kbcpponly kbcompiler KB128213