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

Reply via email to