Boost logo

Boost :

From: Pavel Chikulaev (pavel.chikulaev_at_[hidden])
Date: 2005-03-08 08:16:36


"Pavel Chikulaev" <pavel.chikulaev_at_[hidden]> wrote in message
news:d0k7sp$au4$1_at_sea.gmane.org...
>> - There should be an implicit conversion sequence that allows to evaluate
>> a lazy expression:
> Already works.
> Example:
> void fun(Matrix &);
> Matrix a, b, c;
> fun(a + b * c * (a + b)); //compiles just fine.

Oops. It won't work.

void fun(const Matrix &);
Matrix a, b, c;
fun(a + b * c * (a + b)); // Now it works.

--
Pavel Chikulaev 

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