forked from boostorg/unordered
removed implementation of scoped_bilock copy ctor
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user