El Jueves 07 Junio 2007, litingbaotou escribió:
> when I want to allocate memory for a group, I can use:
> 1)  osg::ref_ptr< osg::Group > myGroup = new osg::Group;
> 2)  osg::ref_ptr< osg::Group > myGroup = new osg::Group();
>
> Are there some differences between these two method?

I'd dare to say that there are no differences between the two, because when 
you use "new osg::Group" the compiler calls the default constructor and when 
you write "new osg::Group()" you are calling it directly. However this is 
more a C++ question than an OSG question, maybe someone can answer your 
question better in a C++ forum/mailing list.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to