[osg-users] how to ref_ptr -> operator work?

小 杨 ygwbjut at yahoo.com.cn
Thu Jul 3 19:18:48 PDT 2008

 osg::ref_ptr<osg::Node>  a = new osg:Node;
   a->setName(); //OK
  but ref_ptr overload -> operator and  return  a pointer to osg:Node,
  so may  write (a->)->setName()  is right? WHY?
  Thanks !

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080704/bd35294e/attachment-0002.htm>

More information about the osg-users mailing list