Use always std::vector to allocate memory.