Boost logo

Boost :

From: Rainer Deyke (root_at_[hidden])
Date: 2002-02-19 19:25:02

----- Original Message -----
From: "Andrei Alexandrescu" <andrewalex_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Tuesday, February 19, 2002 4:39 PM
Subject: Re: [boost] Re: Most needed/desired features in C++

> Oh yes. For example, it could return the class name prefixed by the
> namespace name. For local classes or nameless types or types defined
> anonymous namespaces, the value returned remains implementation
> while it's still guaranteed that those implementation dependent
names don't
> clash with the honest names.

It might even be helpful to make some requirements on those names that
are implementation dependent.

> namespace
> {
> class foo1 {}; // implementation defined

This should be "X::foo1", where X is a name assigned by the
implementation to the namespace.

> class {} bar1; // implementation defined

"X::Y", same X as above, Y defined by the implementation.

> void fun()
> {
> class local // implementation defined
> {
> };

"X::fun()::local", same X as above. Named local classes that do not
reside in an anonymous namespace can be assigned names systematically,
so there's no particular point in leaving it up to the implementation.

> }
> }

Rainer Deyke | root_at_[hidden] |

Boost list run by bdawes at, gregod at, cpdaniel at, john at