[mammoth] Move EndpointClient to move-only semantics.
This commit is contained in:
parent
2e89aee5a3
commit
90f33f31c5
15 changed files with 44 additions and 30 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue