mirror of
https://github.com/boostorg/regex.git
synced 2025-07-16 13:52:17 +02:00
64-bit portability fix
[SVN r23065]
This commit is contained in:
@ -38,7 +38,13 @@ inline void inplace_destroy(T* p)
|
||||
|
||||
struct saved_state
|
||||
{
|
||||
unsigned int id;
|
||||
union{
|
||||
unsigned int id;
|
||||
// these ensure that this struct gets the same alignment as derived structs:
|
||||
void* padding1;
|
||||
std::size_t padding2;
|
||||
std::ptrdiff_t padding3;
|
||||
};
|
||||
saved_state(unsigned i) : id(i) {}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user