Commit 2fcbc0c1 authored by Carlos O'Ryan's avatar Carlos O'Ryan
Browse files

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.
parent f20797bd
...@@ -1920,9 +1920,9 @@ using ::testing::_; ...@@ -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::_; ...@@ -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::_; ...@@ -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::_; ...@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment