Boost logo

Boost :

From: Valentin Bonnard (Bonnard.V_at_[hidden])
Date: 1999-11-10 12:27:54


Bill Klein wrote:

> >If operator== were defined in the boost library as a non-member
> >template, then you could specialize it for your particular type
> >to give it the semantics you want when you need them. Would that
> >satisfy your concerns?
>
> Yes, I think that sounds like a good compromise. Is
> there any disadvantage to doing it this way?

I am very VERY strongly opposed to any specialization
which breaks semantics (example: vector<bool>).

Specialization should be used to refine semantics or
optimise (same for overloading, which could be viewed
as another form of specialisation).

-- 
Valentin Bonnard

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