Skip to content

Commit

Permalink
Fix usage of std::aligned_storage
Browse files Browse the repository at this point in the history
  • Loading branch information
hkaiser committed Aug 16, 2017
1 parent 478d493 commit 1fe411c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hpx/runtime/serialization/detail/serialize_collection.hpp
Expand Up @@ -86,8 +86,8 @@ namespace hpx { namespace serialization { namespace detail {
typename Collection::size_type size)
{
using value_type = typename Collection::value_type;
using storage_type = std::aligned_storage<
sizeof(value_type), alignof(value_type)>;
using storage_type = typename std::aligned_storage<
sizeof(value_type), alignof(value_type)>::type;

collection.clear();
hpx::traits::detail::reserve_if_reservable(collection, size);
Expand Down

0 comments on commit 1fe411c

Please sign in to comment.