diff --git a/tdutils/td/utils/Status.h b/tdutils/td/utils/Status.h index 4540b4138..1bbddc27d 100644 --- a/tdutils/td/utils/Status.h +++ b/tdutils/td/utils/Status.h @@ -343,6 +343,7 @@ class Result { other.status_ = Status::Error<-2>(); } Result &operator=(Result &&other) { + CHECK(this != &other); if (status_.is_ok()) { value_.~T(); }