Boost logo

Boost :

From: Thomas Witt (witt_at_[hidden])
Date: 2002-01-25 11:39:24


On Friday 25 January 2002 16:44, you wrote:
> > 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).

You're right. I was looking in the wrong place.

When I said it feels like an omission I meant doing this should be possible.
Anyway I am not going to start to reason about this. Neither do I have the
required knowledge nor does it make sense here and now. If nevertheless
someone wants to enlighten me why this is ommitted private email would be
welcome.

Thanks

Thomas

>
> Bjorn

-- 
Dipl.-Ing. Thomas Witt
Institut fuer Verkehrswesen, Eisenbahnbau und -betrieb, Universitaet Hannover
voice: +49(0) 511 762 - 4273, fax: +49(0) 511 762-3001
http://www.ive.uni-hannover.de

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk