diff options
author | Abseil Team <absl-team@google.com> | 2021-02-10 18:47:44 (GMT) |
---|---|---|
committer | Andy Soffer <asoffer@google.com> | 2021-02-11 17:49:46 (GMT) |
commit | eac6a02cc25e2491ca0b6aa773f6f8d378cc1214 (patch) | |
tree | bfabc7d556b97560c4279d91fe03d2a773fb9b6f /googlemock/include/gmock/gmock-more-actions.h | |
parent | e09d2b6a79b5e112b066e42e3a77fadaf0e646eb (diff) | |
download | googletest-eac6a02cc25e2491ca0b6aa773f6f8d378cc1214.zip googletest-eac6a02cc25e2491ca0b6aa773f6f8d378cc1214.tar.gz googletest-eac6a02cc25e2491ca0b6aa773f6f8d378cc1214.tar.bz2 |
Googletest export
Mark move constructor noexcept
PiperOrigin-RevId: 356772642
Diffstat (limited to 'googlemock/include/gmock/gmock-more-actions.h')
-rw-r--r-- | googlemock/include/gmock/gmock-more-actions.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/googlemock/include/gmock/gmock-more-actions.h b/googlemock/include/gmock/gmock-more-actions.h index 5d00ec3..114e30f 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_Impl>( \ 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 <typename F> \ operator ::testing::Action<F>() const { \ |