removed implementation of scoped_bilock copy ctor

This commit is contained in:
joaquintides
2023-03-30 12:39:10 +02:00
parent f02afbc815
commit 6a4728add0

View File

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