Can you please use a std::shared_ptr instead ?