On Monday 29 June 2015 20:42:40 Marc Mutz wrote: > > But, isn't there a third way for some types? For those that can take a > > null > > > > d- pointer, it should be easy to just do: > > > > > > Klass &operator=(Klass &&other) > > { d = other.d; other.d = nullptr; return *this; } > > Doesn't work. this->d is leaked in the process.
Never mind then... -- Thiago Macieira - thiago.macieira (AT) intel.com Software Architect - Intel Open Source Technology Center _______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development