From 990a5316741bfea74a48bdae4c8ee10580cd9328 Mon Sep 17 00:00:00 2001 From: Pavel Kirienko Date: Wed, 9 Apr 2014 12:51:10 +0400 Subject: [PATCH] Protected constructor of MapBase<> --- libuavcan/include/uavcan/map.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libuavcan/include/uavcan/map.hpp b/libuavcan/include/uavcan/map.hpp index 91d3fa7626..f65fe2b6a5 100644 --- a/libuavcan/include/uavcan/map.hpp +++ b/libuavcan/include/uavcan/map.hpp @@ -101,10 +101,6 @@ class UAVCAN_EXPORT MapBase : Noncopyable }; protected: - /// Derived class destructor must call removeAll(); - ~MapBase() { } - -public: MapBase(KVPair* static_buf, unsigned num_static_entries, IAllocator& allocator) : allocator_(allocator) , static_(static_buf) @@ -113,6 +109,10 @@ public: assert(Key() == Key()); } + /// Derived class destructor must call removeAll(); + ~MapBase() { } + +public: Value* access(const Key& key); /// If entry with the same key already exists, it will be replaced