79664385

Date: 2025-06-13 05:30:40
Score: 1
Natty:
Report link

Yes, using a char[] as placement-new storage is technically undefined behavior (UB) according to the C++ standard, despite being widely used in practice. The reason lies in C++'s rules about object lifetimes and storage, introduced and clarified in C++17 and C++20.

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