[mammoth] Move EndpointClient to move-only semantics.

This commit is contained in:
Drew Galbraith 2023-06-26 11:54:36 -07:00
parent 2e89aee5a3
commit 90f33f31c5
15 changed files with 44 additions and 30 deletions

View file

@ -17,6 +17,7 @@ class UniquePtr {
T* temp = ptr_;
ptr_ = other.ptr_;
other.ptr_ = temp;
return *this;
}
~UniquePtr() {
@ -45,7 +46,7 @@ class UniquePtr {
template <typename T, typename... Args>
UniquePtr<T> MakeUnique(Args... args) {
return UniquePtr(new T(args...));
return UniquePtr<T>(new T(args...));
}
} // namespace glcr