ruba / cortex-vfx

Automatically exported from code.google.com/p/cortex-vfx
Other
2 stars 1 forks source link

Object::save( SaveContext ) masks Object::save( IndexedIOInterfacePtr, name ) #43

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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.

Original issue reported on code.google.com by thehaddo...@gmail.com on 30 Sep 2011 at 12:22

GoogleCodeExporter commented 8 years ago
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.

Original comment by chad...@gmail.com on 30 Sep 2011 at 12:33