From f2afbe9f85dad356d58866eabb21ba64276b9718 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Tue, 11 Oct 2022 09:09:20 +0200 Subject: [PATCH] silenced unused capture warning --- include/boost/unordered/detail/foa.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/boost/unordered/detail/foa.hpp b/include/boost/unordered/detail/foa.hpp index ee53046c..c5045685 100644 --- a/include/boost/unordered/detail/foa.hpp +++ b/include/boost/unordered/detail/foa.hpp @@ -1168,6 +1168,7 @@ public: }, [&,this]{ /* else */ BOOST_ASSERT(al()==x.al()); + (void)this; /* makes sure captured this is used */ }); swap(size_,x.size_); swap(arrays,x.arrays);