2 ms·
What is assigned (std::to_chars_result) is considered by the if condition. The left hand side of the assignment is then split in two. Just like if it were if (a
by alecco 2y ago
What is assigned (std::to_chars_result) is considered by the if condition. The left hand side of the assignment is then split in two. Just like if it were if (auto res = std::to_chars(p, last, 42)). The split with the [to, ec] makes it convenient inside the if body.
- quietbritishjim 2y agoOk but you've avoided saying whether my example would work, and I don't think what you've said even hints one way or another.