News for hackers. Stuff that matters.
Re:C++ patterns for low-latency applications including high-... by quotemstr on Tuesday July 09, 2024 @11:53AM (#40917555)
Sure. I've just only rarely encountered the situation you're describing. When it comes up, passing a shared_ptr by const reference is fine --- just so long as it's documented and the code explains "Look, I know this looks like a newbie error, but in context, it's actually an optimization. Here's why..." lest someone "optimize" away the deferred load win.

There are no comments on this comment yet.