mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-29 19:07:15 +02:00
Use aligned_storage's address method to get pointer
This commit is contained in:
@ -2357,13 +2357,13 @@ template <class H, class P> class functions
|
||||
function_pair const& current() const
|
||||
{
|
||||
return *static_cast<function_pair const*>(
|
||||
static_cast<void const*>(&funcs_[current_]));
|
||||
static_cast<void const*>(funcs_[current_].address()));
|
||||
}
|
||||
|
||||
function_pair& current()
|
||||
{
|
||||
return *static_cast<function_pair*>(
|
||||
static_cast<void*>(&funcs_[current_]));
|
||||
static_cast<void*>(funcs_[current_].address()));
|
||||
}
|
||||
|
||||
void construct(bool which, H const& hf, P const& eq)
|
||||
|
Reference in New Issue
Block a user