Oberon00 / luabind

Luabind is a library that helps you create bindings between C++ and Lua.
http://oberon00.github.io/luabind/
Other
46 stars 13 forks source link

Replace deprecated auto_ptr with unique_ptr #32

Open lonski opened 9 years ago

lonski commented 9 years ago

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ł

Oberon00 commented 8 years ago

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.