From 8d701ebb4f78d48b3b23a5e2e0f8696bdaf11a05 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 22 Jun 2018 17:44:45 +0100 Subject: [PATCH] Fix rpl::variable assignment. --- Telegram/SourceFiles/rpl/variable.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Telegram/SourceFiles/rpl/variable.h b/Telegram/SourceFiles/rpl/variable.h index 757e5e8e6..96bb79da3 100644 --- a/Telegram/SourceFiles/rpl/variable.h +++ b/Telegram/SourceFiles/rpl/variable.h @@ -67,6 +67,10 @@ public: variable() : _data{} { } + variable &operator=(variable &&other) { + return (*this = std::move(other._data)); + } + template < typename OtherType, typename = std::enable_if_t<