|
Boost : |
From: Bjorn Karlsson (bjorn.karlsson_at_[hidden])
Date: 2002-01-25 10:44:24
> From: Thomas Witt [mailto:witt_at_[hidden]]
>
> template <class T>
> class C
> {
> friend class T;
> };
>
> Though gcc-2.95.3 and edg in ms mode accept
>
> template <class T>
> class C
> {
> friend T;
> };
>
> I think neither this nor the solution above is legal with
> regard to the
> standard. To be more accurate it looks like this problem is
> not covered by
> the standard.
>
AFAICT both cases are ill-formed *and* covered by the Standard (7.1.5.3p1,
7.1.5.3p2, 7.1.5.3p3).
Bjorn
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk