79552418

Date: 2025-04-03 08:49:02
Score: 0.5
Natty:
Report link

Actually, the key thing to remember here is that named variables aren't implicitly moved - so while it looks like a typical move construction case, the compiler won't automatically move x into FooResult unless std::move(x) is explicitly used. Otherwise, we fall back to copy semantics if a copy constructor exists.

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Shelton Liu