[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>:
Hello,
I've got a small question that I've not been able to answer looking at c++
tutorials:
- Can friend functions call other methods from the classes they are friends
with?
Example
class First
{
public:
void function1();
};
class Second
{
public:
void function2();
friend void First::function1();
};
First::function1()
{ function2(); }
Thanks.
Renan M Z Mendes
_______________________________________________
osg-users mailing list
osg-users at lists.openscenegraph.org
<mailto:osg-users at lists.openscenegraph.org>
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
<http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20070901/4447bb00/attachment.html
More information about the osg-users
mailing list