New issue 43 by thehaddo...@gmail.com: Object::save( SaveContext ) masks
Object::save( IndexedIOInterfacePtr, name )
http://code.google.com/p/cortex-vfx/issues/detail?id=43
This code doesn't compile :
PointsPrimitivePtr points = new PointsPrimitive( new V3fVectorData() );
points->save( IndexedIOInterface::create("/var/tmp/part.fio", "/",
IndexedIO::Write), "test" );
This code does :
PointsPrimitivePtr points = new PointsPrimitive( new V3fVectorData() );
staticPointerCast<Object>( points )->save(
IndexedIOInterface::create("/var/tmp/part.fio", "/",
IndexedIO::Write), "test" );
I think we need to rename the first form ( the one taking SaveContext ) to
something else.
one more thing: the existing PointsPrimitive::save(
IECore::Object::SaveContext *context ) doesn't work as a public method,
because Objects::SaveContext is protected. any public methods using
protected members of Object as arguments should probably be made protected.