R
ramkrishna.kulkarni
Hello,
Please see the code below.
class A : public B<C,D,E>
{
// some data and member variables
}
class P : public Q<R,S>, public T
{
private :
Ref <A> m_typeA;
}
Now, in Ref, I am calling a method on m_typeA to maintain reference
counter. This is where I get an error. I know that the compiler has to
know the class definition before calling some method on it. But you can
see that class A has dependancy on class P. Also, forward declaration
solved the problem on UNIX. However I get " error C2027: use of
undefined type 'A' " on Windows OS.
Please help.
thanks,
- Ram
Please see the code below.
class A : public B<C,D,E>
{
// some data and member variables
}
class P : public Q<R,S>, public T
{
private :
Ref <A> m_typeA;
}
Now, in Ref, I am calling a method on m_typeA to maintain reference
counter. This is where I get an error. I know that the compiler has to
know the class definition before calling some method on it. But you can
see that class A has dependancy on class P. Also, forward declaration
solved the problem on UNIX. However I get " error C2027: use of
undefined type 'A' " on Windows OS.
Please help.
thanks,
- Ram