|
|
|
|
|
by gpderetta
876 days ago
|
|
> intrusive data structures, user-controlled memory allocations That's par for the course in c++. > not try to replace built-in types (arrays) How do you pass around C arrays to avoid the braindead pointer decay? You wrap them in a struct. That's literally all that std::array does. |
|
https://godbolt.org/z/Y73j8a7Yf