Boost logo

Ublas :

Subject: Re: [ublas] [patch] Move Semantics for uBlas
From: Nasos Iliopoulos (nasos_i_at_[hidden])
Date: 2009-09-16 19:44:18

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

> From: guwi17_at_[hidden]
> To: ublas_at_[hidden]
> 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.