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:
@@ -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) {
|
||||
}, [=] {
|
||||
}));
|
||||
|
Reference in New Issue
Block a user