Possible Duplicate:
Conversion of pointer-to-pointer between derived and base classes?
Converting Derived** to Base** and Derived* to Base*
I have an intf + class
class IList
{
public:
virtual IList** GetChildList()=0;
virtual void SetChildList(IList**)=0;
~IList();
};
class CList:public IList
{
CList** m_lst;
public:
IList** GetChildList()=0;
virtual void SetChildList(IList**);
//...
};
IList** CList::GetChildList()
{
return m_lst;
}
Why do I get error 2440 in MSVC in GetChildList saying "'return' : cannot convert from 'CList** **' to 'IList **"
Thanks for the help, in advance!