Topic: [Q]:Using qualified name in class definition


Author: jsa@edg.com (J. Stephen Adamczyk)
Date: 1999/04/29
Raw View
In article <7g7sdf$res$1@nnrp1.dejanews.com> firstian@earthlink.net writes:
>Can anyone tell me whether it is legal to use a fully qualified name in a
>member declaration in a class (and point me to the paragraph of the
>standard)? For example:
>
>class A
>{
> int A::foo(); // Is this legal?
>};

No, that's not valid.  See 8.3 paragraph 1 in the standard.

Steve Adamczyk



[ 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://reality.sgi.com/austern_mti/std-c++/faq.html              ]






Author: firstian@earthlink.net
Date: 1999/04/28
Raw View
Hi,

Can anyone tell me whether it is legal to use a fully qualified name in a
member declaration in a class (and point me to the paragraph of the
standard)? For example:

class A
{
 int A::foo(); // Is this legal?
};

Joe

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own
---
[ 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://reality.sgi.com/austern_mti/std-c++/faq.html              ]