Enable -Wdeprecated warnings and fix them

This commit is contained in:
Léo Lam
2020-12-06 02:13:19 +01:00
parent 49097ad9e6
commit f99debc7ef
4 changed files with 22 additions and 2 deletions
@@ -17,6 +17,17 @@ public:
/// Destructor that automatically releases any acquired BaseProc.
~ActorLinkConstDataAccess();
ActorLinkConstDataAccess(const ActorLinkConstDataAccess&) = delete;
ActorLinkConstDataAccess& operator=(const ActorLinkConstDataAccess&) = delete;
ActorLinkConstDataAccess(ActorLinkConstDataAccess&& other) noexcept {
*this = std::move(other);
}
ActorLinkConstDataAccess& operator=(ActorLinkConstDataAccess&& other) noexcept {
std::swap(mAcquired, other.mAcquired);
std::swap(mProc, other.mProc);
return *this;
}
/// Acquire a BaseProc. This increments its reference count.
/// If an actor was already acquired, it is released.
bool acquire(BaseProc* proc);