64-bit portability fix

[SVN r23065]
This commit is contained in:
John Maddock
2004-06-09 12:12:42 +00:00
parent 7c74a98ae5
commit ba148bae42

View File

@ -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) {}
};