From dac11351994d7963e946e245030f38991a3a2200 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Fri, 10 Mar 2023 19:20:44 +0100 Subject: [PATCH] fixed usage syntax for destroy_on_exit --- include/boost/unordered/detail/foa/table.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/boost/unordered/detail/foa/table.hpp b/include/boost/unordered/detail/foa/table.hpp index 9fc94d39..07fa0c58 100644 --- a/include/boost/unordered/detail/foa/table.hpp +++ b/include/boost/unordered/detail/foa/table.hpp @@ -296,7 +296,7 @@ public: type_policy::construct(this->al(),p,std::forward(args)...); - destroy_on_exit guard{this->al(),p}; + typename destroy_on_exit guard{this->al(),p}; return emplace_impl(type_policy::move(*p)); } @@ -417,8 +417,6 @@ public: } private: - using super::destroy_on_exit; - struct erase_on_exit { erase_on_exit(table& x_,const_iterator it_):x{x_},it{it_}{}