A
Alfonso Morra
Is there a difference between these two:
Decl 1
=============
class A {} ;
class B {
public:
friend class A ;
......
private:
......
};
Decl 2
=============
class A {} ;
class B {
public:
......
private:
friend class A ;
};
Before you ask, I've had a look at parashift and a few other sites, but
this question is not explicitly addressed AFAIK - however, most (all?)
of the code have the friend declaration under the public decl. Is there
a standard/ what(if any) are the implications of either one of the two?
Decl 1
=============
class A {} ;
class B {
public:
friend class A ;
......
private:
......
};
Decl 2
=============
class A {} ;
class B {
public:
......
private:
friend class A ;
};
Before you ask, I've had a look at parashift and a few other sites, but
this question is not explicitly addressed AFAIK - however, most (all?)
of the code have the friend declaration under the public decl. Is there
a standard/ what(if any) are the implications of either one of the two?