Boost logo

Boost :

From: Björn Karlsson (Bjorn.Karlsson_at_[hidden])
Date: 2002-10-01 08:05:53

> From: Peter Dimov [mailto:pdimov_at_[hidden]]
> Excuse me for jumping in, but why is the check needed at all? Standard
> allocators must support both forms of allocate().

They must, but this one (the stdlib supplied with VC6) doesn't :-(. It's a
workaround for a deficiency, that's all. In this particular case, it might
have been easier to just use Allocator::allocate(size_type,const_pointer)
with a null second argument than to use this longish macro. Furthermore, I
just tried it on VC7, and it worked just fine without
Allocator::allocate(size_type). That should cut 2-3 lines off the macro...

Bjorn Karlsson

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