diff --git a/include/boost/unordered/detail/foa.hpp b/include/boost/unordered/detail/foa.hpp index f06d7d4a..c18cab85 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -1393,7 +1393,7 @@ public: * inserted. For immovable types, we instead dispatch to the routine that * unconditionally allocates via `type_policy::construct()`. */ - return emplace_dispatch( + return emplace_value( std::is_constructible< value_type, emplace_type&&>{}, @@ -1873,16 +1873,16 @@ private: #endif template - BOOST_FORCEINLINE std::pair emplace_dispatch( - std::true_type,Args&&... args + BOOST_FORCEINLINE std::pair emplace_value( + std::true_type /* movable value_type */,Args&&... args ) { using emplace_type_t = emplace_type; return emplace_impl(emplace_type_t(std::forward(args)...)); } template - BOOST_FORCEINLINE std::pair emplace_dispatch( - std::false_type,Args&&... args + BOOST_FORCEINLINE std::pair emplace_value( + std::false_type /* immovable value_type */,Args&&... args ) { alignas(element_type) unsigned char buf[sizeof(element_type)];