|
Ublas : |
From: Gunter Winkler (guwi17_at_[hidden])
Date: 2008-02-20 17:40:26
Am Mittwoch, 20. Februar 2008 23:15 schrieb Nico Galoppo:
> 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).
BTW. The answer is already part of the FAQ:
see "Strange compile error using zero_vector"
mfg
Gunter