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();