[linux-audio-dev] (OT) C++ flame war

Andy Schmeder andy at a2hd.com
Thu Feb 6 02:04:01 UTC 2003


<quote who="Paul Davis">
> all i'd really like it to be able to say:
>
>        class Foo {
>           protected:
> 	      /* scope A */
> 	      friend class Bar;
> 	      ...
>           protected:
> 	      /* scope B */
> 	      friend class Baz;
> 	      ...
>        };
>
> such that Bar can only access stuff within "scope A" and Baz can only
> access stuff in "scope B". that is, access control keywords

...

I'm no expert on C++, but can this be done using a namespace inside of a
class?


Andy.




More information about the Linux-audio-dev mailing list