79500708

Date: 2025-03-11 12:21:38
Score: 2.5
Natty:
Report link

This very fact that you cannot initialize a class member of the same type as the class on the stack, is something that should have been fixed a long time ago. The C++ standard should have tackled this issue, instead of debating of useless features, such construct is essential to become an integral part of C++. I cannot understand why a compiler cannot calculate the size of Foo, in a two pass or three pass compilation and linkage.

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sven Van de Velde