I have shot myself in the foot twice today because it's way too easy to type,

auto foo = std::unique_ptr<Foo>();

instead of,

auto foo = std::make_unique<Foo>();

I guess I'm still jet lagged.

Sign in to participate in the conversation
Mastodon

Server run by the main developers of the project 🐘 It is not focused on any particular niche interest - everyone is welcome as long as you follow our code of conduct!