From ed816afac46b1b679feb2d0ae29312c26af1a05b Mon Sep 17 00:00:00 2001 From: Avi Kivity Date: Thu, 27 Jun 2024 17:01:21 +0300 Subject: [PATCH] readers: define query::partition_slice before using it in default argument C++23 made std::unique_ptr constexpr. A side effect of this (presumably) is that the compiler compiles it more eagerly, requiring the full definition of the class in std::make_unique, while it previously was content with finding the definition later. One victim of this change is the default argument of make_reversing_reader; define it earlier (by including its header) to build with C++23. --- readers/reversing_v2.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readers/reversing_v2.hh b/readers/reversing_v2.hh index c9970bdad3..5bbd642386 100644 --- a/readers/reversing_v2.hh +++ b/readers/reversing_v2.hh @@ -8,12 +8,12 @@ #pragma once #include +#include "query-request.hh" class mutation_reader; namespace query { struct max_result_size; - class partition_slice; }