[Development] FileRe: Move ctors for q_declare_shared types

Thiago Macieira thiago.macieira at intel.com
Mon Jun 29 19:59:27 CEST 2015


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




More information about the Development mailing list