Skip to content

Commit

Permalink
Consistently using addressof()
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed Jun 8, 2017
1 parent e1ee7b0 commit 82e3643
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hpx/parallel/algorithms/uninitialized_move.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ namespace hpx { namespace parallel { inline namespace v1
util::loop_with_cleanup_n_with_token(
first, count, dest, tok,
[](Iter it, FwdIter dest) {
::new (&*dest) value_type(std::move(*it));
::new (static_cast<void*>(std::addressof(*dest)))
value_type(std::move(*it));
},
[](FwdIter dest) {
(*dest).~value_type();
Expand Down

0 comments on commit 82e3643

Please sign in to comment.