This should have been done in b8c9cd3528 to avoid all warnings about std::auto_ptr<> being deprecated when using g++ 6 or later which compiles in C++14 mode by default.
b8c9cd3528