Date: Mon, 16 Oct 2023 07:00:54 +0000
> And I say "at least two problems" because it's assuming I haven't missed some other valid scenario for a single-colon to appear in an expression.
Here's another, a range-based for-loop in an immediately-invoked lambda:
X"{ [&] { for (auto v : c) if (v) return *v; return s; }() }"
Or a switch-case statement in an immediately-invoked lambda would have single-colons as well.
-hadriel
Juniper Public
Here's another, a range-based for-loop in an immediately-invoked lambda:
X"{ [&] { for (auto v : c) if (v) return *v; return s; }() }"
Or a switch-case statement in an immediately-invoked lambda would have single-colons as well.
-hadriel
Juniper Public
Received on 2023-10-16 07:01:06