79326720

Date: 2025-01-03 14:31:22
Score: 1.5
Natty:
Report link

I know that copy constructor should be generated implicitly in c++98, but 4th says that copy is deprecated. What does it mean?

It means, as your test shows, that the copy constructor still will be generated, but that this may not be the case in future versions of the standard.

See C.21 for a best practice recommendation and corresponding clang-tidy check.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: nilo