Hi Paul,

osganimationtimeline fails to build on VC 2005. See attached error log.

It builds for me. Perhaps you had a partial update, because osganimationtimeline.cpp revision 10697 seems to contain the modifications to include the necessary header to fix your error.

About the warnings. I haven't used virtual inheritance, only read about it in books, but to me it looks like the fact that osgAnimation::AnimationUpdateCallbackBase inherits virtually from osg::Object should tell the compiler that that version of the methods take precedence over other classes inherited only publicly. So I think this warning is bogus.

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-openscenegraph.org

Reply via email to