fix ambiguous name (gcc)
This commit is contained in:
committed by
Konstantin Käfer
parent
025654a101
commit
2075d6bb9a
@@ -89,7 +89,7 @@ public:
|
||||
|
||||
private:
|
||||
T *ptr = nullptr;
|
||||
lock lock;
|
||||
class lock lock;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -33,11 +33,11 @@ lock::lock(const std::unique_ptr<mutex> &mtx_) : mtx(mtx_.get()) {
|
||||
lock::~lock() {
|
||||
if (mtx) { mtx->unlock(); }
|
||||
}
|
||||
lock::lock(lock &&lock) {
|
||||
std::swap(mtx, lock.mtx);
|
||||
lock::lock(lock &&other) {
|
||||
std::swap(mtx, other.mtx);
|
||||
}
|
||||
lock &lock::operator=(lock &&lock) {
|
||||
std::swap(mtx, lock.mtx);
|
||||
lock &lock::operator=(lock &&other) {
|
||||
std::swap(mtx, other.mtx);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user