[webkit-dev] Naming preference: SetForScope vs. TemporaryChange

Antti Koivisto koivisto at iki.fi
Mon Dec 26 02:15:01 PST 2016

On Mon, Dec 26, 2016 at 5:29 AM, Maciej Stachowiak <mjs at apple.com> wrote:

>         ScopedChange(tachyonFlux, 2.0);

I wish there was a compiler warning against this. I have caused at least
one bug by doing this exact thing.

(a temporary gets deleted at the end of the expression)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-dev/attachments/20161226/adf2c758/attachment.html>

More information about the webkit-dev mailing list