There is no reason, did you try it with other values and get strange output?

> From: guwi17@gmx.de
> To: ublas@lists.boost.org
> Date: Wed, 16 Sep 2009 23:42:51 +0200
> Subject: Re: [ublas] [patch] Move Semantics for uBlas
>
> Hello Nasos,
>
> Am Tuesday 15 September 2009 schrieb Nasos Iliopoulos:
> > In the test example (main.cpp) two tests are defined, one for vectors
> > and one for matrices. The aim of this example is to print the
> > pointers of the storage of each of the containers, before and after
> > the assignment to a temporary object. When move semantics are
> > enabled, the vector<T> and matrix<T> storage is moved from the
> > temporary and no copy is performed.
>
> Is there any special reason why you set some values of the result
> vectors to zero? This way the output is quite surprising (and looks
> like a bug.)
>
> mfg
> Gunter


Bing brings you health info from trusted sources. Try it now!