diff options
author | Gennadiy Civil <misterg@google.com> | 2019-08-15 17:34:18 -0400 |
---|---|---|
committer | Gennadiy Civil <misterg@google.com> | 2019-08-15 17:34:18 -0400 |
commit | 9b70406919faddd764cb73b9d0ebb118c0a386ea (patch) | |
tree | eaa9cd450a7729b5c867221dbff8fdc1243f7e1b /googlemock/include/gmock/gmock-spec-builders.h | |
parent | 6aba4a5c45c03c2367c3390708c049fa8bc14487 (diff) | |
parent | ec49fbca4cb84651fb2eae5d093d0342f356cf29 (diff) | |
download | googletest-9b70406919faddd764cb73b9d0ebb118c0a386ea.tar.gz googletest-9b70406919faddd764cb73b9d0ebb118c0a386ea.tar.bz2 googletest-9b70406919faddd764cb73b9d0ebb118c0a386ea.zip |
Merge pull request #2399 from kuzkry:custom-type-traits-is_same
PiperOrigin-RevId: 263568712
Diffstat (limited to 'googlemock/include/gmock/gmock-spec-builders.h')
-rw-r--r-- | googlemock/include/gmock/gmock-spec-builders.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/googlemock/include/gmock/gmock-spec-builders.h b/googlemock/include/gmock/gmock-spec-builders.h index 735a3bcb..0d1adda5 100644 --- a/googlemock/include/gmock/gmock-spec-builders.h +++ b/googlemock/include/gmock/gmock-spec-builders.h @@ -67,6 +67,7 @@ #include <set> #include <sstream> #include <string> +#include <type_traits> #include <utility> #include <vector> #include "gmock/gmock-actions.h" @@ -1653,9 +1654,8 @@ class FunctionMocker<R(Args...)> final : public UntypedFunctionMockerBase { const OnCallSpec<F>* const spec = FindOnCallSpec(args); if (spec == nullptr) { - *os << (internal::type_equals<Result, void>::value ? - "returning directly.\n" : - "returning default value.\n"); + *os << (std::is_void<Result>::value ? "returning directly.\n" + : "returning default value.\n"); } else { *os << "taking default action specified at:\n" << FormatFileLocation(spec->file(), spec->line()) << "\n"; |