Boost logo

Boost :

From: scleary_at_[hidden]
Date: 2001-05-22 08:47:15

> > It would probably be nice to have an allocator_traits of some kind,
> > could specify if the allocator is instance-based or not. This would
> > such usage errors to be caught at compile-time.
> I don't know. I really dislike 'traits'.
> They're a non-local technique, using traits requires defining
> specialisations of something global, just to define something
> local. This is bad, in general. However, making something
> work at all may be better than nothing :-)

I think I wrote this when I was really tired! :)

Of course, traits are useful when you need to describe builtin types or
user-defined types in a non-intrusive way. Neither of which apply here :)
so the specification of "is instance based" can be required right in the
allocator type.


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