aboutsummaryrefslogtreecommitdiffhomepage
path: root/tdutils/td
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2025-08-31 01:48:12 +0300
committerlevlam <levlam@telegram.org>2025-08-31 01:48:12 +0300
commit0647e359ce3b84756f8643c29e8d0d478b2b9039 (patch)
treeb80f23257047250d79fd1d03fa5c0c73f4b83093 /tdutils/td
parentc171a6ffdbebd204d317a3b697ee553439083073 (diff)
Mark move constructors noexcept.
Diffstat (limited to 'tdutils/td')
-rw-r--r--tdutils/td/utils/ScopeGuard.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tdutils/td/utils/ScopeGuard.h b/tdutils/td/utils/ScopeGuard.h
index e1d2fd6a2..99c7a445b 100644
--- a/tdutils/td/utils/ScopeGuard.h
+++ b/tdutils/td/utils/ScopeGuard.h
@@ -37,7 +37,7 @@ class LambdaGuard final : public Guard {
}
LambdaGuard(const LambdaGuard &) = delete;
LambdaGuard &operator=(const LambdaGuard &) = delete;
- LambdaGuard(LambdaGuard &&other) : func_(std::move(other.func_)), dismissed_(other.dismissed_) {
+ LambdaGuard(LambdaGuard &&other) noexcept : func_(std::move(other.func_)), dismissed_(other.dismissed_) {
other.dismissed_ = true;
}
LambdaGuard &operator=(LambdaGuard &&) = delete;