3 ms·
Tbf I don't think C copies the whole flexible array member either[0]. So the care you would normally take while using a flexible array member in C should also b
by _gabe_ 4y ago
Tbf I don't think C copies the whole flexible array member either[0]. So the care you would normally take while using a flexible array member in C should also be taken in C++ :)
[0]: https://stackoverflow.com/questions/35423293/flexible-array-member-not-getting-copied-when-i-make-a-shallow-copy-of-a-struct https://stackoverflow.com/questions/35423293/flexible-array-...
- loeg 4y agoRight. But C has fewer scenarios where implicit copies are possible, in part because it does not have references.