[osg-users] Friend functions

Gordon Tomlinson gordon at gordon-tomlinson.com
Sat Sep 1 10:29:49 PDT 2007

As David said, you should really try something like this first and then if
you have an issue try asking the question or Google it.
See http://www.parashift.com/c++-faq-lite/friends.html
Also the OSG forum is not really the place to be asking C++ questions, there
are many places better suited for those type  of questions

Gordon Tomlinson 

Email   : gordon at GordonTomlinson.com
Website : www.vis-sim.com www.gordontomlinson.com 


"Self defence is not a function of learning tricks 
but is a function of how quickly and intensely one 
can arouse one's instinct for survival" 
-Master Tambo Tetsura 



From: osg-users-bounces at lists.openscenegraph.org
[mailto:osg-users-bounces at lists.openscenegraph.org] On Behalf Of David Callu
Sent: 01 September 2007 18:03
To: osg-users at lists.openscenegraph.org
Subject: Re: [osg-users] Friend functions

try it

2007/9/1, Renan Mendes <renanmzmendes at gmail.com>: 


I've got a small question that I've not been able to answer looking at c++
- Can friend functions call other methods from the classes they are friends


class First 
          void function1();

class Second
          void function2();

     friend void First::function1();

{  function2();  } 


Renan M Z Mendes

osg-users mailing list
osg-users at lists.openscenegraph.org
<mailto:osg-users at lists.openscenegraph.org> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20070901/4447bb00/attachment-0003.htm>

More information about the osg-users mailing list