summaryrefslogtreecommitdiff
path: root/libartbase/base/safe_map.h
diff options
context:
space:
mode:
Diffstat (limited to 'libartbase/base/safe_map.h')
-rw-r--r--libartbase/base/safe_map.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libartbase/base/safe_map.h b/libartbase/base/safe_map.h
index c6d4353038..fa13fe0f68 100644
--- a/libartbase/base/safe_map.h
+++ b/libartbase/base/safe_map.h
@@ -49,8 +49,9 @@ class SafeMap {
SafeMap() = default;
SafeMap(const SafeMap&) = default;
SafeMap(SafeMap&&) noexcept = default;
+ explicit SafeMap(const allocator_type& allocator) : map_(allocator) {}
explicit SafeMap(const key_compare& cmp, const allocator_type& allocator = allocator_type())
- : map_(cmp, allocator) {
+ : map_(cmp, allocator) {
}
Self& operator=(const Self& rhs) {