forked from boostorg/container
Use remove_const to correctly extract key_type from value_type, as the typical case is pair<const KeyType, MappedType>
This commit is contained in:
1 parent
d9ecdd8f67
commit
efde619997
1 file changed
+2
-1
@@ -425,7 +425,8 @@ class tree
|
||||
|
||||
public:
|
||||
|
||||
typedef typename key_of_value_t::type key_type;
|
||||
typedef typename dtl::remove_const
|
||||
<typename key_of_value_t::type>::type key_type;
|
||||
typedef T value_type;
|
||||
typedef Compare key_compare;
|
||||
typedef ValComp value_compare;
|
||||
|
||||
Reference in new issue
Block a user