2015-05-18 13:46 GMT+02:00 Marc Mutz <[email protected]>:

> On Monday 18 May 2015 12:17:32 Koehne Kai wrote:
> > Can you elaborate? We're talking about in/out parameters here, where
> > raw pointers IMO are still perfectly valid. What do you expect the
> > signature  of readLine(QString *line) to be in C++14?
> QString readLine(QString &&reuseThisStringsCapacity);
>

The overload is unintuitive and the operation so complex that I would
propose doing something different altogether. It's no longer a one-liner.
It's not a good case for out parameters at all...

-- 
Andreas Aardal Hanssen
_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to