Fix. Use C++03 compatible way to align struct. (Build on MSVC)

#1299 break compiling with MSVC 2010.
This commit is contained in:
Alexey Melnichuk 2015-01-13 18:16:27 +04:00
parent 3503fdad33
commit 57cb34f123

View File

@ -59,7 +59,8 @@ namespace zmq
done done
} type; } type;
union { union args_t
{
// Sent to I/O thread to let it know that it should // Sent to I/O thread to let it know that it should
// terminate itself. // terminate itself.
@ -147,7 +148,7 @@ namespace zmq
} args; } args;
enum { pad_size = 64 - (sizeof(destination) + sizeof(args)) }; enum { pad_size = 64 - (sizeof(zmq::object_t*) + sizeof(args_t) + sizeof(type_t)) };
unsigned char unused[ pad_size ]; unsigned char unused[ pad_size ];
}; };