[fix]: removed auto_ptr to avoid deprecated warnings in C++11