From 7a59b3d2b36869b11fb1f4f43e678856a26f8deb Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 13 Oct 2020 13:51:13 +0300 Subject: [PATCH] Fix td_api C++11 compatibility. GitOrigin-RevId: de46b13b26aa268770e99cf2b83ecf86b9ba5385 --- td/tl/TlObject.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/td/tl/TlObject.h b/td/tl/TlObject.h index 9cf698ebc..85b540f1b 100644 --- a/td/tl/TlObject.h +++ b/td/tl/TlObject.h @@ -115,10 +115,10 @@ class unique_ptr { } explicit unique_ptr(T *ptr) noexcept : ptr_(ptr) { } - template ::value>> + template ::value>::type> unique_ptr(unique_ptr &&other) noexcept : ptr_(static_cast(other.release())) { } - template ::value>> + template ::value>::type> unique_ptr &operator=(unique_ptr &&other) noexcept { reset(static_cast(other.release())); return *this;