Topic: friend declarations without class keyword
Author: "Pavel Kuznetsov" <pavel_kuznetsov@deadspam.com>
Date: Tue, 18 Sep 2001 11:57:10 GMT Raw View
The Standard forbids omitting keyword 'class' while
declaring friend classes. I.e.
class A {
};
class B {
friend A; // error here
};
Many compilers (MSVC++, Intel, Borland, Comeau etc.) allow
this as an extension. What was the rationale behind this
committee decision?
--
Pavel Kuznetsov
[ DON'T MAIL THE REPLY ADDRESS! THAT IS UNATTENDED MAILBOX. ]
[ If you do want contact me in person, please use the address: ]
[ pavel <dot> kuznetsov <at> mail <dot> ru ]
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.research.att.com/~austern/csc/faq.html ]