Commit f8099464 authored by Dominik Charousset's avatar Dominik Charousset

Add sanity check

parent 315115b4
......@@ -78,6 +78,7 @@ public:
Iterator emit_batches_impl(local_actor* self, Iterator i, Iterator e,
bool force_underfull) {
CAF_LOG_TRACE(CAF_ARG(force_underfull));
CAF_ASSERT(desired_batch_size > 0);
using type = detail::decay_t<decltype(*i)>;
// Ship full batches.
while (std::distance(i, e) >= desired_batch_size) {
......
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