Boost logo

Boost :

From: Carlo Wood (carlo_at_[hidden])
Date: 2002-09-04 07:37:39


On Wed, Sep 04, 2002 at 01:39:41PM +0300, Peter Dimov wrote:
> Note that there is one more problem awaiting. Allocator is a concrete type -
> std::allocator<char> for instance - but I got the impression that you'll
> need to use it to define temporary std::vector's etc with a value_type that
> is not char. This means that you'll have to use the "rebind" member of the
> Allocator and this is certainly going to create problems on some compilers.

Isn't the C++ standard written to avoid things like that?
You can't be serious that a demand of boost libraries is to
work on all kinds of old compilers?!

> What is wrong with the "to the metal"
>
> extern "C" int demangle_type_impl(char const * type, char * out, size_t
> out_len, char * workarea, size_t workarea_len);
>
> + C++ style "for the rest of us"
>
> std::string demangle_type(std::string type);

Well, you can't specify the (internal) allocator for one thing.
It was a demand that that is possible.

-- 
Carlo Wood <carlo_at_[hidden]>

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