News for hackers. Stuff that matters.
Re:Why does C++ think my class is copy-constructible when it... by dh2022 on Tuesday June 10, 2025 @11:36AM (#44238129)
I have the same feeling. It seems to me these copy/move semantics are done for performance reasons, and at the same time are very hard to follow / use / implement correctly. Today I would rather use C or assembly language than C++. At least I know what I am doing.
Re:Why does C++ think my class is copy-constructible when it... by ainiriand on Tuesday June 10, 2025 @11:40AM (#44238176)
They are a shot in the foot waiting to happen.
Re:Why does C++ think my class is copy-constructible when it... by sitzkrieg on Tuesday June 10, 2025 @01:26PM (#44239229)
because people began to understand c++ again, the arsenal has expanded
Re:Why does C++ think my class is copy-constructible when it... by acchow on Tuesday June 10, 2025 @01:01PM (#44239025)
Not just performance. They enable smart pointers, reducing memory leaks and simplifying memory management