Skip to content

Commit

Permalink
Replace depecrated std::aligned_storage since C++23 by alignas
Browse files Browse the repository at this point in the history
  • Loading branch information
Tessil committed Oct 9, 2023
1 parent 9415490 commit 391b9d8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions include/tsl/hopscotch_hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -386,11 +386,8 @@ class hopscotch_bucket : public hopscotch_bucket_hash<StoreHash> {
}

private:
using storage = typename std::aligned_storage<sizeof(value_type),
alignof(value_type)>::type;

neighborhood_bitmap m_neighborhood_infos;
storage m_value;
alignas(value_type) unsigned char m_value[sizeof(value_type)];
};

/**
Expand Down

0 comments on commit 391b9d8

Please sign in to comment.