try it

2007/9/1, Renan Mendes <[EMAIL PROTECTED]>:
>
> 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@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to