Fix #8643: AVLTreeMap strategy Auto discards const

Signed-off-by: Ingo Weinhold <ingo_weinhold@gmx.de>
This commit is contained in:
Pawel Dziepak 2012-06-29 00:24:49 +02:00 committed by Ingo Weinhold
parent 342e3b2c1b
commit 06e8742063

View File

@ -26,7 +26,7 @@ namespace AVLTreeMapStrategy {
typename Node;
inline Node* Allocate(const Key& key, const Value& value)
inline void Free(Node* node)
inline Key GetKey(Node* node) const
inline const Key GetKey(const Node* node) const
inline Value& GetValue(Node* node) const
inline AVLTreeNode* GetAVLTreeNode(Node* node) const
inline Node* GetNode(AVLTreeNode* node) const
@ -622,7 +622,7 @@ public:
fAllocator.Deallocate(node);
}
inline Key& GetKey(Node* node) const
inline const Key& GetKey(const Node* node) const
{
return node->key;
}