Boost logo

Ublas :

Subject: Re: [ublas] [patch] Move Semantics for uBlas
From: Neal Becker (ndbecker2_at_[hidden])
Date: 2009-09-15 07:20:30


I haven't studied this in any detail. Do I understand correctly that this
is an optimization for compilers that don't elide constructors?

I have tested a few times in the past the modern gcc will elide
constructors, and returning containers by value does not cause unneeded
copies.

Is the point of this only to allow containers to be returned by value, or is
there more to it?