News for hackers. Stuff that matters.
Re:My favourite C++ footgun by rualca on Wednesday June 23, 2021 @02:42AM (#27601508)
> 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?

There are no comments on this comment yet.