Add noexcept to move constructors and assignment operators.
am: 1fae1c1827
Change-Id: I8caf33ff427d093aaafa6e6e23bd0df0e17f21d1
diff --git a/update_manager/boxed_value.h b/update_manager/boxed_value.h
index 5f41835..c6aaf4d 100644
--- a/update_manager/boxed_value.h
+++ b/update_manager/boxed_value.h
@@ -70,8 +70,9 @@
// move constructor explicitly preventing it from accidental references,
// like in:
// BoxedValue new_box(std::move(other_box));
- BoxedValue(BoxedValue&& other) // NOLINT(build/c++11)
- : value_(other.value_), deleter_(other.deleter_),
+ BoxedValue(BoxedValue&& other) noexcept // NOLINT(build/c++11)
+ : value_(other.value_),
+ deleter_(other.deleter_),
printer_(other.printer_) {
other.value_ = nullptr;
other.deleter_ = nullptr;