News for hackers. Stuff that matters.
Re:Joint Allocations in C++ by yoklov on Monday September 14, 2015 @02:45PM (#10216689)
I imagine C++ doesn't allow FAMs because it wouldn't know how to call the destructors/constructors on the members of the array (or how many to call).
Re:Joint Allocations in C++ by uxcn on Monday September 14, 2015 @03:30PM (#10216957)
To allow FAMs for non-trivially constructible/destructible types would be slightly more complicated than C FAMs, but it doesn't seem like an unreasonable thing to expect from the language/library, or intractable from a standard or compiler perspective.

Regardless, I'm still not sure what the justification is requiring it be UB even for just primitive types.