diff options
author | Gennadiy Civil <gennadiycivil@users.noreply.github.com> | 2018-03-14 11:21:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-14 11:21:53 -0400 |
commit | a325ad2db5deb623eab740527e559b81c0f39d65 (patch) | |
tree | c4b677a27ad5ac69cf8d4a0b98b152259c4796d1 /googlemock/include/gmock/gmock-actions.h | |
parent | f35fe6de3b25671099de0bf69b016eed3832dc9e (diff) | |
parent | 262aaf2f1dbf13df1aa0c303595b45981824fc8a (diff) | |
download | googletest-a325ad2db5deb623eab740527e559b81c0f39d65.tar.gz googletest-a325ad2db5deb623eab740527e559b81c0f39d65.tar.bz2 googletest-a325ad2db5deb623eab740527e559b81c0f39d65.zip |
Merge pull request #1504 from gennadiycivil/master
Merges
Diffstat (limited to 'googlemock/include/gmock/gmock-actions.h')
-rw-r--r-- | googlemock/include/gmock/gmock-actions.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/googlemock/include/gmock/gmock-actions.h b/googlemock/include/gmock/gmock-actions.h index 845c8232..90fd2ea6 100644 --- a/googlemock/include/gmock/gmock-actions.h +++ b/googlemock/include/gmock/gmock-actions.h @@ -46,9 +46,10 @@ #include "gmock/internal/gmock-internal-utils.h" #include "gmock/internal/gmock-port.h" -#if GTEST_HAS_STD_TYPE_TRAITS_ // Defined by gtest-port.h via gmock-port.h. +#if GTEST_LANG_CXX11 // Defined by gtest-port.h via gmock-port.h. +#include <functional> #include <type_traits> -#endif +#endif // GTEST_LANG_CXX11 namespace testing { @@ -96,7 +97,7 @@ struct BuiltInDefaultValueGetter<T, false> { template <typename T> class BuiltInDefaultValue { public: -#if GTEST_HAS_STD_TYPE_TRAITS_ +#if GTEST_LANG_CXX11 // This function returns true iff type T has a built-in default value. static bool Exists() { return ::std::is_default_constructible<T>::value; @@ -107,7 +108,7 @@ class BuiltInDefaultValue { T, ::std::is_default_constructible<T>::value>::Get(); } -#else // GTEST_HAS_STD_TYPE_TRAITS_ +#else // GTEST_LANG_CXX11 // This function returns true iff type T has a built-in default value. static bool Exists() { return false; @@ -117,7 +118,7 @@ class BuiltInDefaultValue { return BuiltInDefaultValueGetter<T, false>::Get(); } -#endif // GTEST_HAS_STD_TYPE_TRAITS_ +#endif // GTEST_LANG_CXX11 }; // This partial specialization says that we use the same built-in |