Stop using auto_ptr std::unique_ptr requires -std=c++11. just use raw pointer.
Attach a file by drag & drop or click to upload