mirror of
https://github.com/google/googletest.git
synced 2024-12-28 19:15:24 +08:00
Remove silly claim that C++ lacks lambdas.
The document itself uses lambdas later, all the scaffolding to work around lack of lambdas should be considered for removal, but that is much larger an effort than I can commit to.
This commit is contained in:
parent
f20797bd8d
commit
2fcbc0c1ab
@ -1920,9 +1920,9 @@ using ::testing::_;
|
|||||||
// second argument DoThis() receives.
|
// second argument DoThis() receives.
|
||||||
```
|
```
|
||||||
|
|
||||||
Arghh, you need to refer to a mock function argument but C++ has no
|
Arghh, you need to refer to a mock function argument but your version
|
||||||
lambda (yet), so you have to define your own action. :-( Or do you
|
of C++ has no lambdas, so you have to define your own action. :-(
|
||||||
really?
|
Or do you really?
|
||||||
|
|
||||||
Well, Google Mock has an action to solve _exactly_ this problem:
|
Well, Google Mock has an action to solve _exactly_ this problem:
|
||||||
|
|
||||||
|
@ -1773,9 +1773,9 @@ using ::testing::_;
|
|||||||
// second argument DoThis() receives.
|
// second argument DoThis() receives.
|
||||||
```
|
```
|
||||||
|
|
||||||
Arghh, you need to refer to a mock function argument but C++ has no
|
Arghh, you need to refer to a mock function argument but your version
|
||||||
lambda (yet), so you have to define your own action. :-( Or do you
|
of C++ has no lambdas, so you have to define your own action. :-(
|
||||||
really?
|
Or do you really?
|
||||||
|
|
||||||
Well, Google Mock has an action to solve _exactly_ this problem:
|
Well, Google Mock has an action to solve _exactly_ this problem:
|
||||||
|
|
||||||
|
@ -1841,9 +1841,9 @@ using ::testing::_;
|
|||||||
// second argument DoThis() receives.
|
// second argument DoThis() receives.
|
||||||
```
|
```
|
||||||
|
|
||||||
Arghh, you need to refer to a mock function argument but C++ has no
|
Arghh, you need to refer to a mock function argument but your version
|
||||||
lambda (yet), so you have to define your own action. :-( Or do you
|
of C++ has no lambdas, so you have to define your own action. :-(
|
||||||
really?
|
Or do you really?
|
||||||
|
|
||||||
Well, Google Mock has an action to solve _exactly_ this problem:
|
Well, Google Mock has an action to solve _exactly_ this problem:
|
||||||
|
|
||||||
|
@ -1869,9 +1869,9 @@ using ::testing::_;
|
|||||||
// second argument DoThis() receives.
|
// second argument DoThis() receives.
|
||||||
```
|
```
|
||||||
|
|
||||||
Arghh, you need to refer to a mock function argument but C++ has no
|
Arghh, you need to refer to a mock function argument but your version
|
||||||
lambda (yet), so you have to define your own action. :-( Or do you
|
of C++ has no lambdas, so you have to define your own action. :-(
|
||||||
really?
|
Or do you really?
|
||||||
|
|
||||||
Well, Google Mock has an action to solve _exactly_ this problem:
|
Well, Google Mock has an action to solve _exactly_ this problem:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user