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

Adding uninitialized_move and uninitialized_move_n #2664

Merged
merged 5 commits into from Jun 9, 2017

Conversation

hkaiser
Copy link
Member

@hkaiser hkaiser commented May 31, 2017

This is related to #1141

util::loop_with_cleanup_n_with_token(
first, count, dest, tok,
[](Iter it, FwdIter dest) {
::new (&*dest) value_type(std::move(*it));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this use std::addressof?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, will fix.

@hkaiser
Copy link
Member Author

hkaiser commented Jun 7, 2017

@sithhell your comments have been addressed

@hkaiser hkaiser added this to Work in progress in Standard Algorithms Jun 8, 2017
@hkaiser hkaiser merged commit b9574d6 into master Jun 9, 2017
@hkaiser hkaiser deleted the uninitialized_move branch June 9, 2017 13:52
@hkaiser hkaiser moved this from Work in progress to Merged to master in Standard Algorithms Jul 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Standard Algorithms
  
Merged to master
Development

Successfully merging this pull request may close these issues.

None yet

2 participants