diff --git a/include/boost/unordered/detail/foa.hpp b/include/boost/unordered/detail/foa.hpp index 7e598aff..5731cc41 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -1394,9 +1394,9 @@ public: * unconditionally allocates via `type_policy::construct()`. */ return emplace_dispatch( - std::is_same< + std::is_constructible< value_type, - element_type>{}, + emplace_type&&>{}, std::forward(args)...); }