News for hackers. Stuff that matters.
Re:The C++ standard for the F-35 Fighter Jet [video] by tialaramex on Sunday December 07, 2025 @02:03PM (#46184129)
RAII doesn't imply allocating.

My guess is that you're assuming all user defined types, and maybe even all non-trivial built-in types too, are boxed, meaning they're allocated on the heap when we create them.

That's not the case in C++ (the language in question here) and it's rarely the case in other modern languages because it has terrible performance qualities.

There are no comments on this comment yet.