From f604efe8666f94b25a4c16771d31a00dd5e504de Mon Sep 17 00:00:00 2001 From: Christian Mazakas Date: Wed, 14 Jun 2023 13:14:24 -0700 Subject: [PATCH] Add missing const reference qualifiers to allocator_type constructor parameters --- include/boost/unordered/concurrent_flat_map.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/boost/unordered/concurrent_flat_map.hpp b/include/boost/unordered/concurrent_flat_map.hpp index fdaead75..3eaa731e 100644 --- a/include/boost/unordered/concurrent_flat_map.hpp +++ b/include/boost/unordered/concurrent_flat_map.hpp @@ -144,22 +144,24 @@ namespace boost { } template - concurrent_flat_map(InputIterator f, InputIterator l, allocator_type a) + concurrent_flat_map( + InputIterator f, InputIterator l, allocator_type const& a) : concurrent_flat_map(f, l, 0, hasher(), key_equal(), a) { } - explicit concurrent_flat_map(allocator_type a) + explicit concurrent_flat_map(allocator_type const& a) : table_(detail::foa::default_bucket_count, hasher(), key_equal(), a) { } - concurrent_flat_map(concurrent_flat_map const& rhs, allocator_type a) + concurrent_flat_map( + concurrent_flat_map const& rhs, allocator_type const& a) : table_(rhs.table_, a) { } - concurrent_flat_map(concurrent_flat_map&& rhs, allocator_type a) + concurrent_flat_map(concurrent_flat_map&& rhs, allocator_type const& a) : table_(std::move(rhs.table_), a) { }