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 7, 2017
1 parent e1ee7b0 commit 3e800a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hpx/parallel/algorithms/uninitialized_move.hpp
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(*first));
},
[](FwdIter dest) {
(*dest).~value_type();
Expand Down

0 comments on commit 3e800a4

Please sign in to comment.