Hi Sukender,

On 24 June 2013 14:29, Sukender <[email protected]> wrote:
> Yeah, sure I agree with your reaction... This is nonsense (as long as the 
> hypothesis is verified).
> About the subclass, it could be a nice idea as long as "forced downcast" (ie. 
> casting a "true" Geometry to a GeometryDeprecated) is possible. Ex:
>
> p = new Geometry;
>
> //... somewhere else:
> static_cast<GeometryDeprecated*>(p)->someDeprecatedFunction()

I think mostly one would just do

GeometryDeprecated* gd = new GeometryDeprecated;
gs->someDeprecatedFunction();

So just do a search and replace of Geometry with GeometryDeprecated;

Another possibility would be to have a deprecated_osg namespace such as

namespace deprecated_osg
{
class Geometry : public osg::Geometry
{
     deprecated methods...
};
}

Although I'm not sure that is allround a great idea... then none of
the solutions are...

> May I proceed?

With?

Robert.
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to