[Development] qMoveToConst helper for rvalue references to movable Qt containers?
Kevin Kofler
kevin.kofler at chello.at
Sun Oct 28 15:42:45 CET 2018
Sérgio Martins wrote:
> On Sat, Oct 27, 2018 at 1:53 PM Elvis Stansvik <elvstone at gmail.com> wrote:
>> Yes, I thought that Q_FOREACH was slated for deprecation though. But
>> maybe that's not set in stone yet?
>
> It is, see Qt's documentation:
> "Since Qt 5.7, the use of this macro is discouraged. It will be
> removed in a future version of Qt"
As long as it is not actually removed, it is not too late to undo this
totally incorrect decision.
See also: https://valdyas.org/fading/hacking/happy-porting/
(Technically, it could be readded even after it is removed, but it would be
much easier to undeprecate it now.)
Kevin Kofler
More information about the Development
mailing list