Hi,

Since C++17 we can haveĀ init-statements in if:
if (char buf[10]; std::fgets(buf, 10, stdin)) { m[0] += buf; }

That is excellent. But what about ternary operators (?:)?
It seems I cannot write something like this now:
return (auto It = Cont.find(42); It == Cont.end()) ? 0 : It->second;

Is it deliberate?
Are there any objections?
What do you think?

--
Dmitry
Sent from gmail