diff options
author | Kirk Shoop <kirk.shoop@microsoft.com> | 2016-10-24 22:48:15 -0700 |
---|---|---|
committer | Kirk Shoop <kirk.shoop@microsoft.com> | 2016-10-25 22:28:51 -0700 |
commit | 53eac3736ae9587a91e33746ace1eb3641068e8a (patch) | |
tree | c7e36a6f84de79687b47b408e9e9884e3fcdbdc3 /Rx/v2/examples | |
parent | 067aeb8b652673617dd13b41e2648449b664d40d (diff) | |
download | RxCpp-53eac3736ae9587a91e33746ace1eb3641068e8a.tar.gz |
decouple reduce
breaking changes to accumulator and result selector function signature.
take and return by-value, reduce will move for you.
switch from abort to terminate
Diffstat (limited to 'Rx/v2/examples')
-rw-r--r-- | Rx/v2/examples/linesfrombytes/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Rx/v2/examples/linesfrombytes/main.cpp b/Rx/v2/examples/linesfrombytes/main.cpp index 4847169..ef7601e 100644 --- a/Rx/v2/examples/linesfrombytes/main.cpp +++ b/Rx/v2/examples/linesfrombytes/main.cpp @@ -33,9 +33,9 @@ int main() return w | reduce( vector<uint8_t>(), - [](vector<uint8_t>& v, uint8_t b){ + [](vector<uint8_t> v, uint8_t b){ v.push_back(b); - return move(v); + return v; }) | as_dynamic(); }) | |