From 83f9a6af8bd67bb49117bd22f936633387ddfc76 Mon Sep 17 00:00:00 2001 From: Johannes Kalmbach Date: Fri, 13 Dec 2024 15:57:17 +0100 Subject: [PATCH] Add a small comment. Signed-off-by: Johannes Kalmbach --- src/engine/Result.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/engine/Result.h b/src/engine/Result.h index d8a564e9e1..006207ae3e 100644 --- a/src/engine/Result.h +++ b/src/engine/Result.h @@ -33,8 +33,11 @@ class Result { : idTable_{std::move(idTable)}, localVocab_{std::move(localVocab)} {} }; - using ActualGenerator = cppcoro::generator; + // 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; + // 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; @@ -46,7 +49,7 @@ class Result { std::make_unique(false); explicit GenContainer(LazyResult generator) : generator_{std::move(generator)} {} - explicit GenContainer(ActualGenerator generator) + explicit GenContainer(Generator generator) : generator_{Generator{std::move(generator)}} {} };