C++ Logo

std-proposals

Advanced search

Re: [std-proposals] std::chimeric_ptr -- it's alive... it's ALIVE!

From: Thiago Macieira <thiago_at_[hidden]>
Date: Mon, 08 Dec 2025 16:14:22 -0800
On Monday, 8 December 2025 14:56:04 Pacific Standard Time Frederick Virchanza
Gotham via Std-Proposals wrote:
> Isn't OOP to C++ kind of like bouncing a ball to basketball? Honestly
> when I talk about doing OOP in C++, I feel like I'm telling people
> that I use my kettle for boiling water (i.e. obviously I use my kettle
> for boiling water).

More like using an oven and casserole for boiling water. You can also make
soup and other meals with it. C++ does not have to use OOP and these days we
avoid it a lot.

However, I also agree that OOP code exists and people could use better tools
for the things they are doing. So you shouldn't have to justify OOP use. But
you may want to argue whether this problem deserves a solution instead of a
refactor.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Principal Engineer - Intel Data Center - Platform & Sys. Eng.

Received on 2025-12-09 00:14:30