Skip to content

Commit

Permalink
Fix rpl::variable assignment.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Jun 22, 2018
1 parent 269bb94 commit 8d701eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Telegram/SourceFiles/rpl/variable.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ class variable final {
variable() : _data{} {
}

variable &operator=(variable &&other) {
return (*this = std::move(other._data));
}

template <
typename OtherType,
typename = std::enable_if_t<
Expand Down

0 comments on commit 8d701eb

Please sign in to comment.