aboutsummaryrefslogtreecommitdiff
path: root/cast/sender
diff options
context:
space:
mode:
authormark a. foltz <mfoltz@chromium.org>2020-11-11 13:11:37 -0800
committerCommit Bot <commit-bot@chromium.org>2020-11-11 22:43:56 +0000
commitd3ffc411d154c9dc803005873f3be8e4000a666d (patch)
treef2f97b902fc99e151ad28ddd5946d94cb2391fc5 /cast/sender
parent7b6396aaef5bf0693c6b9aa2e4bdbe139a28e57a (diff)
downloadopenscreen-d3ffc411d154c9dc803005873f3be8e4000a666d.tar.gz
[Open Screen] Fix noexcept usage.
This patch consistently annotates move constructors with noexcept. This enables move optimization when std::vector is resized. Notes: - LLVM libcxx has been patched to no longer require this when -fno-exceptions is used [1] - However, libc++ still requires it as far as I can tell - There are no compilation issues with noexcept on clang or GCC so MAYBE_NOEXCEPT is no longer necessary - noexcept is only meaningful on declarations, not definitions Background: https://groups.google.com/a/chromium.org/g/chromium-dev/c/8i4tMqNpHhg [1] https://github.com/llvm/llvm-project/commit/2a573784f3679a7abab921018eb1c585dce8e669 Bug: b/160731444 Change-Id: Ib83e5c2fa5a2624665b76a3b2e0f6351a9196f8f Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/2533433 Commit-Queue: mark a. foltz <mfoltz@chromium.org> Reviewed-by: Brandon Tolsch <btolsch@chromium.org>
Diffstat (limited to 'cast/sender')
-rw-r--r--cast/sender/public/cast_app_discovery_service.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cast/sender/public/cast_app_discovery_service.h b/cast/sender/public/cast_app_discovery_service.h
index 6ce5ee78..c05d66bd 100644
--- a/cast/sender/public/cast_app_discovery_service.h
+++ b/cast/sender/public/cast_app_discovery_service.h
@@ -24,7 +24,7 @@ class CastAppDiscoveryService {
class Subscription {
public:
Subscription(CastAppDiscoveryService* discovery_service, uint32_t id);
- Subscription(Subscription&&);
+ Subscription(Subscription&&) noexcept;
Subscription(Subscription&) = delete;
Subscription& operator=(Subscription&&);
Subscription& operator=(const Subscription&) = delete;