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:
1 parent
9137957672
commit
f0736ba73a
6 files changed
+16
-16
No files matched your search
@@ -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