mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-30 03:17:15 +02:00
removed implementation of scoped_bilock copy ctor
This commit is contained in:
@ -94,7 +94,7 @@ private:
|
|||||||
bool owns=true;
|
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.
|
* 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
|
~scoped_bilock()noexcept
|
||||||
{
|
{
|
||||||
if(pm2)pm2->unlock();
|
if(pm2)pm2->unlock();
|
||||||
|
Reference in New Issue
Block a user