summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/coretmpl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/util/coretmpl.h')
-rw-r--r--src/lib/util/coretmpl.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/util/coretmpl.h b/src/lib/util/coretmpl.h
index 0633a10c06e..011fb28264b 100644
--- a/src/lib/util/coretmpl.h
+++ b/src/lib/util/coretmpl.h
@@ -634,9 +634,8 @@ public:
return std::pair<iterator, bool>(inserted, true);
}
template <typename P>
- std::pair<iterator, bool> insert(P &&value)
+ std::enable_if_t<std::is_constructible<value_type, P>::value, std::pair<iterator, bool> > insert(P &&value)
{
- // FIXME: should only participate in overload resolution if std::is_constructible<value_type, P&&>::value
return emplace(std::forward<P>(value));
}
template <typename InputIt>