[Development] QTextStream::readLine(0) is an ambiguous overload in 5.5
Andreas Aardal Hanssen
andreas at hanssen.name
Mon May 18 12:45:36 CEST 2015
2015-05-18 13:46 GMT+02:00 Marc Mutz <marc.mutz at kdab.com>:
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20150518/c7e71999/attachment.html>
More information about the Development
mailing list