2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Use rvalue references in rpl next / error.

This commit is contained in:
John Preston
2017-09-05 11:22:06 +03:00
parent e70052e966
commit b873fee1cf
8 changed files with 243 additions and 84 deletions

View File

@@ -136,12 +136,12 @@ TEST_CASE("basic producer tests", "[rpl::producer]") {
++*lifetimeEndCount;
});
result.add(inner.start([=](int value) {
consumer.put_next(value);
consumer.put_next_copy(value);
}, [=](no_error) {
}, [=] {
}));
result.add(inner.start([=](int value) {
consumer.put_next(value);
consumer.put_next_copy(value);
}, [=](no_error) {
}, [=] {
}));