Get simple prototype of insert_tests working for unordered_node_map

This commit is contained in:
Christian Mazakas
2023-01-30 13:55:50 -08:00
parent a74962bc3c
commit f034e43b74
7 changed files with 925 additions and 16 deletions
+8 -7
View File
@@ -1375,13 +1375,14 @@ public:
template<typename... Args>
BOOST_FORCEINLINE std::pair<iterator,bool> emplace(Args&&... args)
{
using emplace_type = typename std::conditional<
std::is_constructible<
init_type, Args...
>::value,
init_type,
value_type
>::type;
using emplace_type = typename type_policy::emplace_type;
// using emplace_type = typename std::conditional<
// std::is_constructible<
// init_type, Args...
// >::value,
// init_type,
// value_type
// >::type;
return emplace_impl(emplace_type(std::forward<Args>(args)...));
}