Topic: All templates to be friends


Author: maxtal@physics.su.OZ.AU (John Max Skaller)
Date: Wed, 16 Mar 1994 04:57:56 GMT
Raw View
In article <2m12gt$gq5@sunb.ocs.mq.edu.au> valery@macadam.mpce.mq.edu.au (Valery ARONOV) writes:
>Does anybody know the reasons why it is impossible to make ALL
>template-based classes to be friends of some one another class?

 Sure. Its not permitted because its not permitted :-)

 Will it be permitted in ISO C++?

 Probably, yes. But its a bit dangerous, because it
allows a specialisation to violate encapsulation.

--
        JOHN (MAX) SKALLER,         INTERNET:maxtal@suphys.physics.su.oz.au
 Maxtal Pty Ltd,      CSERVE:10236.1703
        6 MacKay St ASHFIELD,     Mem: SA IT/9/22,SC22/WG21
        NSW 2131, AUSTRALIA