Boost logo

Ublas :

From: Nico Galoppo (ngaloppo_at_[hidden])
Date: 2008-02-20 17:15:07


On Feb 20, 2008 4:37 PM, Gunter Winkler <guwi17_at_[hidden]> wrote:

> AFAIK the only workaround is to add extra parentheses:
>
> // untested
> Matrix K(( ublas::identity_matrix<double>(n) ));
>
> (or to use operator=() instead of copy constructor)

Thanks Gunter, that's the approach I went for (it was the most obvious
at the time).

Still, after using ublas for about 2 years, I was surprised to see
that I had never run into this issue before ;)

--nico

-- 
Nico Galoppo :: http://www.ngaloppo.org