diff options
author | Eric Niebler <eniebler@boost.org> | 2017-09-11 10:43:31 -0700 |
---|---|---|
committer | Kirk Shoop <kirk.shoop@microsoft.com> | 2017-09-13 15:52:28 -0700 |
commit | e9931b7813ca96f54575768cfdeb998c4f15ed10 (patch) | |
tree | e8439478cc0e8b62198e66351ead55a24d22500e /Rx/v2/test/operators/group_by.cpp | |
parent | de1df9fb30aa2951752a6c8fa39cc8f78916cbe5 (diff) | |
download | RxCpp-e9931b7813ca96f54575768cfdeb998c4f15ed10.tar.gz |
Fix clang-trunk -Wunused-lambda-capture warnings
Diffstat (limited to 'Rx/v2/test/operators/group_by.cpp')
-rw-r--r-- | Rx/v2/test/operators/group_by.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Rx/v2/test/operators/group_by.cpp b/Rx/v2/test/operators/group_by.cpp index 606d7df..2c7c177 100644 --- a/Rx/v2/test/operators/group_by.cpp +++ b/Rx/v2/test/operators/group_by.cpp @@ -47,13 +47,13 @@ SCENARIO("range partitioned by group_by across hardware threads to derive pi", " [](work w) -> int {return w.index % std::thread::hardware_concurrency();}, [](work w){return w;}). map( - [=, &c](rxcpp::grouped_observable<int, work> onproc) { + [=](rxcpp::grouped_observable<int, work> onproc) { auto key = onproc.get_key(); // share a producer thread across all the ranges in this group of chunks auto producerthread = rxcpp::observe_on_one_worker(rxcpp::observe_on_new_thread().create_coordinator().get_scheduler()); return onproc. map( - [=, &c](work w){ + [=](work w){ std::stringstream message; message << std::setw(3) << w.index << ": range - " << w.first << "-" << w.last; @@ -123,7 +123,7 @@ SCENARIO("range partitioned by dividing work across hardware threads to derive p return work{index, first, last}; }). map( - [=, &c](work w){ + [=](work w){ std::stringstream message; message << std::setw(3) << w.index << ": range - " << w.first << "-" << w.last; |