Skip to content

Commit

Permalink
Add a small comment.
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Kalmbach <[email protected]>
  • Loading branch information
joka921 committed Dec 13, 2024
1 parent e9ea5f0 commit 83f9a6a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/engine/Result.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ class Result {
: idTable_{std::move(idTable)}, localVocab_{std::move(localVocab)} {}
};

using ActualGenerator = cppcoro::generator<IdTableVocabPair>;
// The current implementation of (most of the) lazy results. Will be replaced
// in the future to make QLever compatible with C++17 again.
using Generator = cppcoro::generator<IdTableVocabPair>;
// The lazy result type that is actually stored. It is type-erased and allows
// explicit conversion from the `Generator` above.
using LazyResult =
ad_utility::TypeErasedInputRangeOptionalMixin<IdTableVocabPair>;

Expand All @@ -46,7 +49,7 @@ class Result {
std::make_unique<std::atomic_bool>(false);
explicit GenContainer(LazyResult generator)
: generator_{std::move(generator)} {}
explicit GenContainer(ActualGenerator generator)
explicit GenContainer(Generator generator)
: generator_{Generator{std::move(generator)}} {}
};

Expand Down

0 comments on commit 83f9a6a

Please sign in to comment.