mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 10:11:36 +08:00
Using UAVCAN_PACKED_BEGIN/UAVCAN_PACKED_END macros globally
This commit is contained in:
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user