http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48038

--- Comment #2 from vincenzo Innocente <vincenzo.innocente at cern dot ch> 
2011-03-09 09:40:33 UTC ---
Thanks for the quick answer.

On 9 Mar, 2011, at 10:30 AM, redi at gcc dot gnu.org wrote:

> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48038
> 
> --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-03-09 
> 09:30:17 UTC ---
> I will analyse this properly asap, but there are a few things that look odd in
> your example. Why does your move assignment do a swap not a move?
> 
Most probably for symmetry w.r.t. the "copy" assignment.
In any case this is "test code" I started to write long ago trying several
variants (move, forward, swap)
I'm sure it is not "optimized" for the current compiler, so please feel free to
suggest the best idiom to use in each case.

     vincenzo

> -- 
> Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.

Reply via email to