2 ms·
> And then every object has one more state. No, not really. Either the allocation followed the happy path, or one of the expected failure modes kicked in. And
by rualca 5y ago
> And then every object has one more state.
No, not really. Either the allocation followed the happy path, or one of the expected failure modes kicked in.
And the supposed footgun example boiled down to failing to handle one of the failure modes.
I mean, think about it: std::make_shared is a factory method, isn't it?