Comment

Comment by secondcoming

That example isn't what OP is talking about, because it's obvious what the type of p is because it's on the same line:

    auto p = std::make_shared<T>();
whereas the following isn't clear and isn't necessarily correct without looking up what the return type of foo() actually is:

    auto p = foo();

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton