diff --git a/include/boost/unordered/detail/foa/reentrancy_check.hpp b/include/boost/unordered/detail/foa/reentrancy_check.hpp index 289d161c..6db39f1a 100644 --- a/include/boost/unordered/detail/foa/reentrancy_check.hpp +++ b/include/boost/unordered/detail/foa/reentrancy_check.hpp @@ -62,8 +62,9 @@ public: header()=this; } - entry_trace(const entry_trace&)=delete; - entry_trace& operator=(const entry_trace&)=delete; + /* not used but VS in pre-C++17 mode needs to see it for RVO */ + entry_trace(const entry_trace&); + ~entry_trace(){clear();} void clear()