diff --git a/include/boost/unordered/unordered_flat_map.hpp b/include/boost/unordered/unordered_flat_map.hpp index fa210436..f1f68e71 100644 --- a/include/boost/unordered/unordered_flat_map.hpp +++ b/include/boost/unordered/unordered_flat_map.hpp @@ -92,24 +92,8 @@ namespace boost { return table_.insert(std::move(value)).first; } - template - typename std::enable_if< - std::is_base_of::value, - void>::type - insert(ForwardIterator first, ForwardIterator last) - { - auto const len = std::distance(first, last); - table_.reserve(len); - for (auto pos = first; pos != last; ++pos) { - table_.insert(*pos); - } - } - template - typename std::enable_if< - !std::is_base_of::value, - void>::type - insert(InputIterator first, InputIterator last) + void insert(InputIterator first, InputIterator last) { for (auto pos = first; pos != last; ++pos) { table_.insert(*pos); diff --git a/include/boost/unordered/unordered_flat_set.hpp b/include/boost/unordered/unordered_flat_set.hpp index ced04bfb..e571a5e4 100644 --- a/include/boost/unordered/unordered_flat_set.hpp +++ b/include/boost/unordered/unordered_flat_set.hpp @@ -91,24 +91,8 @@ namespace boost { return table_.insert(std::move(value)).first; } - template - typename std::enable_if< - std::is_base_of::value, - void>::type - insert(ForwardIterator first, ForwardIterator last) - { - auto const len = std::distance(first, last); - table_.reserve(len); - for (auto pos = first; pos != last; ++pos) { - table_.insert(*pos); - } - } - template - typename std::enable_if< - !std::is_base_of::value, - void>::type - insert(InputIterator first, InputIterator last) + void insert(InputIterator first, InputIterator last) { for (auto pos = first; pos != last; ++pos) { table_.insert(*pos);