Yes, it works! Thank you...

On Saturday 03 February 2007 17:57, Paul Martz wrote:
> > > Try the following and see if it helps.
> > >
> > > vec.push_back( dynamic_cast<BaseClass>((*item).get()) );
> >
> > Well this is not going to work since we dynamic_cast to
> > BaseClass and not osg::ref_ptr<BaseClass>. I am a bit confused!
>
> You're right, it should be:
>   vec.push_back( dynamic_cast<BaseClass*>((*item).get()) );
> Sorry I missed the asterisk. Ref_ptr<> has a constructor that takes a T* as
> a parameter, so it should work with this change.
>
> Paul Martz
> Skew Matrix Software LLC
> http://www.skew-matrix.com
> 303 859 9466
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/

-- 
Papadakos Panagiotis
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to