Using UAVCAN_PACKED_BEGIN/UAVCAN_PACKED_END macros globally

This commit is contained in:
Pavel Kirienko
2014-03-03 16:34:36 +04:00
parent 89f8925a76
commit f4112068c1
5 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ namespace uavcan
template <typename Key, typename Value, unsigned int NumStaticEntries>
class Map : Noncopyable
{
#pragma pack(push, 1)
UAVCAN_PACKED_BEGIN
struct KVPair
{
Key key;
@@ -72,7 +72,7 @@ class Map : Noncopyable
return NULL;
}
};
#pragma pack(pop)
UAVCAN_PACKED_END
LinkedListRoot<KVGroup> list_;
IAllocator& allocator_;