From eac6a02cc25e2491ca0b6aa773f6f8d378cc1214 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Wed, 10 Feb 2021 13:47:44 -0500 Subject: [PATCH] Googletest export Mark move constructor noexcept PiperOrigin-RevId: 356772642 --- googlemock/include/gmock/gmock-more-actions.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/googlemock/include/gmock/gmock-more-actions.h b/googlemock/include/gmock/gmock-more-actions.h index 5d00ec35..114e30fc 100644 --- a/googlemock/include/gmock/gmock-more-actions.h +++ b/googlemock/include/gmock/gmock-more-actions.h @@ -292,7 +292,7 @@ // Defines the copy constructor #define GMOCK_INTERNAL_DEFN_COPY_AND_0_VALUE_PARAMS() \ - noexcept {} // Avoid https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82134 + {} // Avoid https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82134 #define GMOCK_INTERNAL_DEFN_COPY_AND_1_VALUE_PARAMS(...) = default; #define GMOCK_INTERNAL_DEFN_COPY_AND_2_VALUE_PARAMS(...) = default; #define GMOCK_INTERNAL_DEFN_COPY_AND_3_VALUE_PARAMS(...) = default; @@ -437,10 +437,10 @@ : impl_(std::make_shared( \ GMOCK_INTERNAL_LIST_##value_params)) { }) \ GMOCK_ACTION_CLASS_(name, value_params)( \ - const GMOCK_ACTION_CLASS_(name, value_params)&) \ + const GMOCK_ACTION_CLASS_(name, value_params)&) noexcept \ GMOCK_INTERNAL_DEFN_COPY_##value_params \ GMOCK_ACTION_CLASS_(name, value_params)( \ - GMOCK_ACTION_CLASS_(name, value_params)&&) \ + GMOCK_ACTION_CLASS_(name, value_params)&&) noexcept \ GMOCK_INTERNAL_DEFN_COPY_##value_params \ template \ operator ::testing::Action() const { \