1
0
mirror of https://github.com/wjwwood/serial.git synced 2026-01-22 11:44:53 +08:00

Disabling more copy constructors

This commit is contained in:
William Woodall 2012-06-07 17:54:11 -05:00
parent 088fcda295
commit 7714615af7

View File

@ -33,6 +33,11 @@ public:
this->pimpl_->readUnlock(); this->pimpl_->readUnlock();
} }
private: private:
// Disable copy constructors
ScopedReadLock(const ScopedReadLock&);
void operator=(const ScopedReadLock&);
const ScopedReadLock& operator=(ScopedReadLock);
SerialImpl *pimpl_; SerialImpl *pimpl_;
}; };
@ -45,6 +50,10 @@ public:
this->pimpl_->writeUnlock(); this->pimpl_->writeUnlock();
} }
private: private:
// Disable copy constructors
ScopedWriteLock(const ScopedWriteLock&);
void operator=(const ScopedWriteLock&);
const ScopedWriteLock& operator=(ScopedWriteLock);
SerialImpl *pimpl_; SerialImpl *pimpl_;
}; };