Boost logo

Boost :

From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2004-03-09 14:52:29


"Powell, Gary" <powellg_at_[hidden]> wrote

> Shouldn't the comparison functions allow the types to differ?
>
> circular_buffer<T, MyAlloc> x;
> circular_buffer<S, YourAlloc> y;
>
> bool b = x == y; for where the operator T == S is valid?
> And what does the allocator have to do with it?
>
Hmm, do you know a STL implementation/some container
with this feature? It may be often bug to compare containers with
different types.

/Pavel


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