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 force-pushed the uninitialized_move branch from 3e800a4 to 82e3643 Compare June 8, 2017 14:03
@hkaiser hkaiser merged commit b9574d6 into master Jun 9, 2017
@hkaiser hkaiser deleted the uninitialized_move branch June 9, 2017 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants