PATCH: libstdc++/7680 (related to RFC posted last week)

Carlo Wood carlo@alinoe.com
Mon Apr 14 11:20:00 GMT 2003


On Mon, Apr 14, 2003 at 10:07:31AM +0100, Jonathan Wakely wrote:
> > Well, it kinda tromps on the extensions we've been telling users about.
> 
> Yes, the FAQ expicitly tells users to use __gnu_cxx, since the SGI
> extensions such as hash_map are declared in that namespace.
> 
> http://gcc.gnu.org/onlinedocs/libstdc++/faq/index.html#5_4
> 
> jon

The templated demangle struct (demangler interface with allocator control)
is also put inside __gnu_cxx.  See libstdc++-v3/include/bits/demangle.h

namespace __gnu_cxx {
  namespace demangler {
  ...
  }

  // Public interface
  template<typename Allocator>
    struct demangle
    {
      ...
    };
}

It was my understanding that this is were extensions should
be put (Benjam did put it there actually).

Please let me know if it needs to be moved :/

-- 
Carlo Wood <carlo@alinoe.com>



More information about the Libstdc++ mailing list