boost serialization and alignment

4 Feb
2009
4 Feb
'09
7:13 a.m.
Hi, When I'm setting struct member alignment as 1 BYTE in visual studio 2005 project environment (C++), I receive alignment error coming from boost serialization library (STATIC_ASSERT) at compilation time. This problem does not happen when I wrap the structures containing the boost serialization template methods using #pragma pack(push,1) and #pragms pack(pop). I'm using boost only to serialize/deserialize strctures and classes to/from XML. Is there a problem for boost serialization library to handle alignment other then the default one? Thanks, Meir
5970
Age (days ago)
5970
Last active (days ago)
0 comments
1 participants
participants (1)
-
meir shoham