From e06f2f17471bdf54ebb4126da67dcfaa0f52a161 Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Mon, 22 Apr 2024 14:31:15 +0200 Subject: Return max distance when typed cells are invalid. --- eval/src/vespa/eval/eval/typed_cells.h | 1 + 1 file changed, 1 insertion(+) (limited to 'eval') diff --git a/eval/src/vespa/eval/eval/typed_cells.h b/eval/src/vespa/eval/eval/typed_cells.h index 6cb8675cd5f..3dd8c30a3a9 100644 --- a/eval/src/vespa/eval/eval/typed_cells.h +++ b/eval/src/vespa/eval/eval/typed_cells.h @@ -36,6 +36,7 @@ struct TypedCells { TypedCells(const TypedCells &other) noexcept = default; TypedCells & operator= (TypedCells &&other) noexcept = default; TypedCells & operator= (const TypedCells &other) noexcept = default; + bool valid() const noexcept { return size != 0; } }; } // namespace -- cgit v1.2.3