On 14/08/2013 at 14:28, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R13-R14
Platform: Windows ;
Language(s) : C++ ;
---------
I am rather new to C++, but wanted to take advantage of multiple inheritance.
But this won't work:
class Tag_C : public Tag_A, public Tag_B
{
public:
static NodeData* Alloc (void)
{
return gNew Tag_C;
}
....
I get error C2594: 'return' : ambiguous conversions from 'Tag_C *' to 'NodeData *
How do I deal with this?
Edited I:
I guess it is because Tag_A and Tag_B have some functions with the similar names?
Edited II:
I think I will drop the whole idea of multiple inheritance, and do it the usual way like in C#.
Any thoughts?