Add new comment

Quick fix

If you are willing to build it yourself, the edits are trivial to make it use std::unique_ptr instead.. Just replace the two std::auto_ptr instances in the libraw_datastream.h with std::unique_ptr (along with the export)

Then go into the CPP file and make sure that

a) every construction of the filebuf that formerly looked like this:

 std::auto_ptr<std::filebuf> buf(new std::filebuf());

Now looks like this:

auto buf = std::make_unique<std::filebuf>();

Also, wrap each assignment of what used to be an auto-ptr with std::move. So, for example, this line:

f = saved_f;

changes to this:

f = std::move(saved_f);