It’s C++:
- don’t use
malloc, usenew - don’t use plain arrays, use
std::vectororstd::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 newstd::vector or std::arraystd::unique_ptr1
solved Failed to allocate an array of pointers to a struct