Use new "data" member char array in aligned_storage::type for placement new, to avoid breaking strict aliasing.

This commit is contained in:
Ion Gaztañaga
2018-01-30 14:20:52 +01:00
parent 9137957672
commit f0736ba73a
6 changed files with 16 additions and 16 deletions
+1 -1
View File
@@ -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; }