Hi Alberto, I've made the suggested change and checked it into svn/trunk.
On Wed, Apr 15, 2009 at 7:30 AM, Alberto Luaces <[email protected]> wrote: > Could we change the osg::TemplateArray constructor from > > osg::TemplateArray(unsigned int no, T* ptr) > > to > > osg::TemplateArray(unsigned int no, const T* ptr) > > ? > > It is located in include/Array, line 188. I think it's a backwards compatible > change and it helps very much when one is building a mesh from a read only > memory source. Last but not least, the data pointed by T is going to be > copied by the code in the constructor, so I think it must be safe. > > Thank you, > > Alberto > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
