mirror of
https://github.com/boostorg/regex.git
synced 2025-07-17 06:12:10 +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
|
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) {}
|
saved_state(unsigned i) : id(i) {}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user