It’s C++:
- don’t use
malloc
, usenew
- don’t use plain arrays, use
std::vector
orstd::array
- don’t use raw pointers, use
std::unique_ptr
1
solved Failed to allocate an array of pointers to a struct
It’s C++:
malloc
, use new
std::vector
or std::array
std::unique_ptr
1
solved Failed to allocate an array of pointers to a struct