Commit 9324dc64 authored by Dominik Charousset's avatar Dominik Charousset

Fix move on const lvalue ref

parent ea9fb5d4
......@@ -249,8 +249,9 @@ public:
async::consumer_resource<T> to_resource() {
return to_resource(defaults::flow::buffer_size, defaults::flow::min_demand);
}
const observable& as_observable() const& noexcept {
return std::move(*this);
return *this;
}
observable&& as_observable() && noexcept {
......
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