Il 5/18/2010 6:23 PM, Alberto Luaces ha scritto:
Gianni Ambrosio writes:
can anybody tell my why I get a bounch of compile errors declaring a
std::vector< const osg::ref_ptr<MyObject> > ?
If I remove the const statement it works fine.
Why do you want do to that?
Simply, to use the const constraints.
Example:
void Class::method(std::vector<const A*>);
That means the content of each object inside the vector does not chenge
its status inside the method or more precisely only const methods can be
called on a A* inside the method ;-)
I guess you would have errors even if you
declared a std::vector<const int>.
No, that's not true. It works fine.
Regards
Gianni
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org