Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
}
};
- struct discard_all {
- template <class ErrorT, EnableIf<ErrorT>...>
- void operator()(ErrorT&&) {
- static_assert(contains_once_v<std::decay_t<ErrorT>>,
- "discarding disallowed ErrorT");
- }
- };
-
template <typename T>
static future<T> make_errorator_future(seastar::future<T>&& fut) {
return std::move(fut);
}
};
- struct discard_all {
- template <class ErrorT>
- void operator()(ErrorT&&) {
- }
- };
-
class assert_all {
const char* const msg = nullptr;
std::function<void()> pre_assert;