From 64cb43ce32923cf30547112aea8c6c721ca77c1c Mon Sep 17 00:00:00 2001 From: joaquintides Date: Tue, 18 Oct 2022 17:42:22 +0200 Subject: [PATCH] protected against hash throwing in nosize_transfer_element --- include/boost/unordered/detail/foa.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/unordered/detail/foa.hpp b/include/boost/unordered/detail/foa.hpp index 114f94c5..d84a0736 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -1694,9 +1694,9 @@ private: void nosize_transfer_element(value_type* p,const arrays_type& arrays_) { - auto hash=hash_for(key_from(*p)); destroy_on_exit d{this,p}; (void)d; /* ununsed var warning */ + auto hash=hash_for(key_from(*p)); nosize_unchecked_emplace_at( arrays_,position_for(hash,arrays_),hash,type_policy::move(*p)); }