summaryrefslogtreecommitdiffstats
path: root/googlemock/test/gmock-matchers_test.cc
diff options
context:
space:
mode:
authorTom Lachecki <TLachecki@serif.com>2019-06-13 16:37:33 (GMT)
committerTom Lachecki <TLachecki@serif.com>2019-06-13 16:37:33 (GMT)
commitd515158d9c015349a79cbdac75a3dfbd0142baae (patch)
tree28345542f446676cbf9146d26ea0cf64d35d9815 /googlemock/test/gmock-matchers_test.cc
parentaf4c2cb098a35f4898c5089335c10ba4bd5a4fce (diff)
downloadgoogletest-d515158d9c015349a79cbdac75a3dfbd0142baae.zip
googletest-d515158d9c015349a79cbdac75a3dfbd0142baae.tar.gz
googletest-d515158d9c015349a79cbdac75a3dfbd0142baae.tar.bz2
Fixed issue #2284 (Incompatibility with C++17)refs/pull/2285/head
Diffstat (limited to 'googlemock/test/gmock-matchers_test.cc')
-rw-r--r--googlemock/test/gmock-matchers_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/googlemock/test/gmock-matchers_test.cc b/googlemock/test/gmock-matchers_test.cc
index eb0a050..89ad335 100644
--- a/googlemock/test/gmock-matchers_test.cc
+++ b/googlemock/test/gmock-matchers_test.cc
@@ -4266,8 +4266,8 @@ TEST(ResultOfTest, WorksForFunctionReferences) {
// Tests that ResultOf(f, ...) compiles and works as expected when f is a
// function object.
-struct Functor : public ::std::unary_function<int, std::string> {
- result_type operator()(argument_type input) const {
+struct Functor {
+ std::string operator()(int input) const {
return IntToStringFunction(input);
}
};