mirror of
https://github.com/boostorg/container.git
synced 2025-08-01 05:24:31 +02:00
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:
@@ -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