Skip to content

Commit

Permalink
Adding missing #include
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed Jun 1, 2017
1 parent 302d17a commit 56d66b1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions hpx/parallel/algorithms/uninitialized_default_construct.hpp
Expand Up @@ -23,6 +23,7 @@
#include <algorithm>
#include <cstddef>
#include <iterator>
#include <memory>
#include <type_traits>
#include <utility>
#include <vector>
Expand All @@ -46,7 +47,8 @@ namespace hpx { namespace parallel { inline namespace v1
FwdIter s_first = first;
try {
for (/* */; first != last; ++first) {
::new (static_cast<void*>(std::addressof(*first))) value_type;
::new (static_cast<void*>(std::addressof(*first)))
value_type;
}
}
catch (...) {
Expand All @@ -70,7 +72,8 @@ namespace hpx { namespace parallel { inline namespace v1
util::loop_with_cleanup_n_with_token(
first, count, tok,
[](FwdIter it) {
::new (&*it) value_type;
::new (sstatic_cast<void*>(std::addressof(*it)))
value_type;
},
[](FwdIter it) {
(*it).~value_type();
Expand Down

0 comments on commit 56d66b1

Please sign in to comment.