luabind
luabind copied to clipboard
Replace deprecated auto_ptr with unique_ptr
trafficstars
Hello,
I thought it would be nice to get rid of those warnings by replacing deprecated std::auto_ptr with std::unique_ptr. I replaced it everywhere and inserted some std::move in order to make it work. I ran all tests from the directory and they behave the same as before. I also did some simple tests in my project. What do you think?
Regards, Michał
Sorry, I completely overlooked this PR. But have you seen #29? I will not merge a pull request that breaks C++03 compatibility so you will have to make all usages of unique_ptr and move conditional on their availability e.g. via a typedef and a wrapper move function, as I suggested to @Bertram25 here.