From 1e9970d1504d7a7f510e8d07b7433af4546f0b33 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Fri, 2 Feb 2024 12:07:58 +0100 Subject: [PATCH] reverted --- include/boost/unordered/detail/foa/concurrent_table.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/unordered/detail/foa/concurrent_table.hpp b/include/boost/unordered/detail/foa/concurrent_table.hpp index a7f52449..5ca9dc84 100644 --- a/include/boost/unordered/detail/foa/concurrent_table.hpp +++ b/include/boost/unordered/detail/foa/concurrent_table.hpp @@ -204,7 +204,7 @@ private: template struct atomic_integral { -#if 0&&defined(BOOST_UNORDERED_LATCH_FREE) +#if defined(BOOST_UNORDERED_LATCH_FREE) operator Integral()const{return n.load(std::memory_order_acquire);} void operator=(Integral m){n.store(m,std::memory_order_release);} void operator|=(Integral m){n.fetch_or(m);} @@ -2076,7 +2076,7 @@ private: if(e.epoch.compare_exchange_strong(expected,retired_element::reserved_)){ p=e.p.exchange(p); if(p){ - //++nodes_wasted; + ++nodes_wasted; element_type x{p}; this->destroy_element(&x); ++v.apos;