|
Boost Users : |
From: jhr.walter_at_[hidden]
Date: 2003-04-08 17:03:00
Hi Stephan,
you wrote:
> Your changes are very welcome! The new code does require far less local
> variables and is much more compact on the user side.
>
> Correct me if I am wrong (I did not dig into the internals of ublas),
> but does not swap() rather change the matrix itself and not the
> matrix_row representations?
Exactly.
> If this is the case, then the whole topic
> of "not changing temporaries in not-const references" is of course
> true, but does not reflect the situation, since not the temporaries,
> but the matrix, on which the temporaries rely, is changed. Then the new
> signatures do reflect the situation much better.
But nevertheless it's pretty surprising, that one needs to swap these 'by
value' ;-)
Best,
Joerg
P.S.: New download is available at
groups.yahoo.com/group/ublas-dev/files/ublas_2003_04_08.zip
P.P.S.: Basically regression tested.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net