summaryrefslogtreecommitdiff
path: root/modules/async/c++/async.tmpl.hpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2024-07-20 13:29:42 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2024-07-20 13:29:42 +0200
commit53d47a9a5a8130e5af1215bbb2c2fb663a81dc30 (patch)
tree64f7a2b517b604006ed127badb42a1859b43dee0 /modules/async/c++/async.tmpl.hpp
parent5f946d3dba74a7d3bc12bc75c4e7e7ed58805d58 (diff)
wip
Diffstat (limited to 'modules/async/c++/async.tmpl.hpp')
-rw-r--r--modules/async/c++/async.tmpl.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/async/c++/async.tmpl.hpp b/modules/async/c++/async.tmpl.hpp
index 7016283..0c38d04 100644
--- a/modules/async/c++/async.tmpl.hpp
+++ b/modules/async/c++/async.tmpl.hpp
@@ -580,14 +580,14 @@ template <typename T> size_t adapt_conveyor_feeder<T>::space() const {
}
template <typename T>
-error adapt_conveyor_feeder<T>::swap(conveyor<T> &&conv) noexcept {
+error_or<void> adapt_conveyor_feeder<T>::swap(conveyor<T> &&conv) noexcept {
SAW_ASSERT(feedee_) { return make_error<err::invalid_state>("No feedee connected"); }
auto node = conveyor<T>::from_conveyor(std::move(conv));
feedee_->swap_child(std::move(node));
- return no_error();
+ return void_t{};
}
template <typename T>