std::vector
and friends vs flexible array member is not a C++ vs C thing. There can be a legitimate need for a flexible array member or equivalent even in C++ (avoiding one extra heap allocation).
↧
Comment by HolyBlackCat on How to resolve the "unknown array size in delete" error when using a class with a flexible array member (FAM) and a non-trivial destructor?
↧