Pimpl copying

André Wöbbeking Woebbeking at onlinehome.de
Fri Jul 14 10:52:42 BST 2006


On Friday 14 July 2006 11:28, Lubos Lunak wrote:
> On Friday 14 July 2006 10:33, André Wöbbeking wrote:
> > On Thursday 13 July 2006 23:05, Peter Kümmel wrote:
> > > While debugging KTempDirTest on windows I've found that this
> > > patch
> > >
> > > Index: ktempdirtest.cpp
> > > =================================================================
> > >== --- ktempdirtest.cpp    (revision 561767)
> > > +++ ktempdirtest.cpp    (working copy)
> > > @@ -26,7 +26,7 @@
> > >
> > >  void KTempDirTest::testBasic()
> > >  {
> > > -       KTempDir dir = KTempDir("test");
> >
> > normal ctor and then copy ctor
>
>  No. It's just syntactic sugar functionally completely equivalent to
> the case below with just normal ctor. If any compiler uses copy ctor
> here it's broken.

Obviously this depends on the compiler. The holy standard only 
says "may, can, yadda, yadda, ..." :-)




More information about the kde-core-devel mailing list