On Friday 26 June 2015 19:23:58 Marc Mutz wrote:
> > Wyh can you do this inline?  
> >
> >  QFoo &operator=(QFoo &&other) { swap(other);QFoo<>().swap(other); return
> >
> > *this; } would not work ?
> 
> It would. But you would have made a previously fully inline function call
> a  non-inline one. You might as well copy, then (assuming we're still
> talking about implictly shared classes).

It also is no longer safe for self-assignment.

-- 
Marc Mutz <[email protected]> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
Tel: +49-30-521325470
KDAB - The Qt Experts
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to