Boost logo

Boost :

From: jfo60540_at_[hidden]
Date: 2001-07-26 14:28:50


--- In boost_at_y..., "David Abrahams" <david.abrahams_at_r...> wrote:
> This sample code reveals your problem:
>
> void f(vector const& x, vector const& y) { x + y };
>
> It won't compile either, for the same reasons.
>
> your operator+ and operator- should be const member functions. Try
adding
> const before the opening brace of each one.
>
> -Dave
>
>

That did the trick ! Many thanks !


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