Hi J-S,
Try "virtual public T" in the derived class.
----
Tom Jolley
> -----Original Message-----
>
>
> Before we decide to suppress warning C4250 though, could
> someone with more knowledge/experience than me check to see
> that it's all ok?
>
> Just to summarize, this is the situation:
>
> class Base : public virtual osg::Object {};
>
> template<class T>
> class Derived : public Base, public T {};
>
> (where T is also derived from osg::Object just as Base was -
> in this case T is osg::NodeCallback).
>
> The warning is saying that the same members are being
> inherited from Base and T, and I think the virtual qualifier
> when Base inherits from osg::Object should fix the ambiguity
> and should mean that the members from Base should win.
> Obviously the virtual seems to remove the ambiguity since
> this is a warning and not an error, so I think this warning
> is just a case of VC++ trying to warn the programmer of
> something he already knows...
>
> J-S
> --
> ______________________________________________________
> Jean-Sebastien Guay [email protected]
> http://www.cm-labs.com/
> http://whitestar02.webhop.org/
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensce
> negraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org