mirror of
https://github.com/google/googletest.git
synced 2024-12-28 11:10:44 +08:00
Fix gmock tests when std::unary_function unavailable
This commit is contained in:
parent
2641b021fc
commit
840c711e7b
@ -3936,8 +3936,11 @@ TEST(ResultOfTest, WorksForFunctionReferences) {
|
|||||||
|
|
||||||
// Tests that ResultOf(f, ...) compiles and works as expected when f is a
|
// Tests that ResultOf(f, ...) compiles and works as expected when f is a
|
||||||
// function object.
|
// function object.
|
||||||
struct Functor : public ::std::unary_function<int, std::string> {
|
struct Functor {
|
||||||
result_type operator()(argument_type input) const {
|
typedef std::string result_type;
|
||||||
|
typedef int argument_type;
|
||||||
|
|
||||||
|
std::string operator()(int input) const {
|
||||||
return IntToStringFunction(input);
|
return IntToStringFunction(input);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user