Skip to content

Commit

Permalink
fix generator
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Jul 18, 2024
1 parent b7f98de commit 3fe4f20
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/utl/generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ struct generator {
~generator() { h_.destroy(); }

explicit operator bool() {
if (h_.done()) {
return false;
}
fill();
return !h_.done();
}
Expand Down

0 comments on commit 3fe4f20

Please sign in to comment.