[cfe-dev] Structured bindings seem to allow non-const references to a bitfield

James Dennett via cfe-dev cfe-dev at lists.llvm.org
Wed Mar 22 13:09:29 PDT 2017


On Wed, Mar 22, 2017 at 12:38 PM, Keane, Erich <erich.keane at intel.com>
wrote:

> Ok, I guess I didn’t (don’t completely?) ‘get’ that there is a difference
> between “structured binding alias” and “reference”.  Additionally, if you
> simply do “auto”, you get copies, right?
>

You get (at most) one copy, of the value that's being decomposed, and it is
unnamed.

-- James
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170322/11cc80aa/attachment.html>


More information about the cfe-dev mailing list