Re: [Development] d_ptr and q_ptr

2011-11-22 Thread Thiago Macieira
On Tuesday, 22 de November de 2011 08.53.47, Olivier Goffart wrote: > I can't recall an example of non-shared copyable class with a private > implementation in Qt, so that mean they are rares. If it's copyable, it usually *can* be shared. Non-sharability would exist in the case where there are con

Re: [Development] d_ptr and q_ptr

2011-11-22 Thread Olivier Goffart
On Tuesday 22 November 2011 11:52:44 David Laing wrote: > Hi all, > > I was just reading this: >http://herbsutter.com/gotw/_100/ > and got to wondering about the pimpl idiom in Qt with respect to > forwards compatibility with C++11. > > Should there be some discussion of the relative merits o

[Development] d_ptr and q_ptr

2011-11-21 Thread David Laing
Hi all, I was just reading this: http://herbsutter.com/gotw/_100/ and got to wondering about the pimpl idiom in Qt with respect to forwards compatibility with C++11. Should there be some discussion of the relative merits of using QFooClass* QFooClassPrivate::q_ptr to refer to public classe