Date: Sat, 15 Feb 2025 22:26:51 +0000
> So a delayed const declaration can only last for the duration of the scope in which they were declared const.
That's a disadvantage compared to using a lambda:
const uint32_t var = [] {
if (something)
return 1;
else
return 2;
}();
Received on 2025-02-15 22:26:56