Boost logo

Boost :

From: Andrei Alexandrescu (andrewalex_at_[hidden])
Date: 2002-02-19 18:39:18

> A first little step that would help for RTTI+ : a standardization for
> what is returned by ::type_info::name( ).

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


namespace foo
    class bar {}; // "foo::bar"

    template <class T> class baz {};

    typedef baz<int> bazint; // "foo::baz< int >"

    class foo1 {}; // implementation defined

    class {} bar1; // implementation defined

    void fun()
        class local // implementation defined


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