From 6a4728add0ba620f587e6ae086f3dea2193d76e3 Mon Sep 17 00:00:00 2001 From: joaquintides Date: Thu, 30 Mar 2023 12:39:10 +0200 Subject: [PATCH] removed implementation of scoped_bilock copy ctor --- include/boost/unordered/detail/foa/concurrent_table.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/boost/unordered/detail/foa/concurrent_table.hpp b/include/boost/unordered/detail/foa/concurrent_table.hpp index 63cdcb7a..5ec0f346 100644 --- a/include/boost/unordered/detail/foa/concurrent_table.hpp +++ b/include/boost/unordered/detail/foa/concurrent_table.hpp @@ -94,7 +94,7 @@ private: bool owns=true; }; -/* VS in pre-C++17 mode has trouble returning std::lock_guard due to +/* VS in pre-C++17 mode can't implement RVO for std::lock_guard due to * its copy constructor being deleted. */ @@ -130,6 +130,9 @@ public: } } + /* not used but VS in pre-C++17 mode needs to see it for RVO */ + scoped_bilock(const scoped_bilock&); + ~scoped_bilock()noexcept { if(pm2)pm2->unlock();