Issue 43 in cortex-vfx: Object::save( SaveContext ) masks Object::save( IndexedIOInterfacePtr, name )

1 view
Skip to first unread message

corte...@googlecode.com

unread,
Sep 29, 2011, 8:22:38 PM9/29/11
to cortex...@googlegroups.com
Status: Accepted
Owner: ----

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.

corte...@googlecode.com

unread,
Sep 29, 2011, 8:34:30 PM9/29/11
to cortex...@googlegroups.com

Comment #1 on issue 43 by chad...@gmail.com: Object::save( SaveContext )
masks Object::save( IndexedIOInterfacePtr, name )
http://code.google.com/p/cortex-vfx/issues/detail?id=43

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.


Reply all
Reply to author
Forward
0 new messages