From 8376286aa6409db33b12d188cefc68f4afea06c1 Mon Sep 17 00:00:00 2001
From: Jan Eisenhauer <44572464+JanEisenhauer@users.noreply.github.com>
Date: Fri, 7 Jun 2019 11:52:44 +0200
Subject: [PATCH] With heterogeneous lookup, `equal_range` can result in a
range with length greater than 1.
---
include/boost/container/flat_set.hpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/boost/container/flat_set.hpp b/include/boost/container/flat_set.hpp
index 080beb5..4d4ae47 100644
--- a/include/boost/container/flat_set.hpp
+++ b/include/boost/container/flat_set.hpp
@@ -1031,7 +1031,7 @@ class flat_set
//! Complexity: Logarithmic
template
std::pair equal_range(const K& x)
- { return this->tree_t::lower_bound_range(x); }
+ { return this->tree_t::equal_range(x); }
//! Requires: This overload is available only if
//! key_compare::is_transparent exists.
@@ -1041,7 +1041,7 @@ class flat_set
//! Complexity: Logarithmic
template
std::pair equal_range(const K& x) const
- { return this->tree_t::lower_bound_range(x); }
+ { return this->tree_t::equal_range(x); }
#if defined(BOOST_CONTAINER_DOXYGEN_INVOKED)