forked from boostorg/container
Use new "data" member char array in aligned_storage::type for placement new, to avoid breaking strict aliasing.
This commit is contained in:
@@ -199,7 +199,7 @@ class basic_string_base
|
||||
{ return s; }
|
||||
|
||||
const long_t &long_repr() const
|
||||
{ return *static_cast<const long_t*>(static_cast<const void*>(&r)); }
|
||||
{ return *static_cast<const long_t*>(static_cast<const void*>(r.data)); }
|
||||
|
||||
short_t &short_repr()
|
||||
{ return s; }
|
||||
|
||||
Reference in New Issue
Block a user