[Solved] Failed to allocate an array of pointers to a struct


It’s C++:

  • don’t use malloc, use new
  • don’t use plain arrays, use std::vector or std::array
  • don’t use raw pointers, use std::unique_ptr

1

solved Failed to allocate an array of pointers to a struct