3 ms·
> Yes exactly. Yes exactly, my example would work? > My hunch is to remember that in `auto [to, ec] = std::to_chars(p, last, 42)` the two names `to` and `ec`
by quietbritishjim 2y ago
> Yes exactly.
Yes exactly, my example would work?
> My hunch is to remember that in `auto [to, ec] = std::to_chars(p, last, 42)` the two names `to` and `ec` are not "real" variables/objects, but ...
Oh so my example wouldn't work after all (because std::string s is a "real" variable/object)?
- protomolecule 2y agoYour example wouldn't work, yes. In case of structured binding The decision variable of the declaration is the invented variable e introduced by the declaration. but in your case its simply: The decision variable of the declaration is the declared variable.