Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace deprecated auto_ptr with unique_ptr #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lonski
Copy link

@lonski lonski commented Sep 26, 2015

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants