From 420d1e50d5a82ace12f1d8a607f4420ba22c75ad Mon Sep 17 00:00:00 2001 From: Felipe Oliveira Carvalho Date: Mon, 23 Jan 2023 15:21:03 -0300 Subject: [PATCH] Declare HasValidityBitmap as a constexpr --- cpp/src/arrow/type.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/arrow/type.h b/cpp/src/arrow/type.h index b6688e97e729d..2e06c3046c66e 100644 --- a/cpp/src/arrow/type.h +++ b/cpp/src/arrow/type.h @@ -2125,7 +2125,7 @@ Result> UnifySchemas( namespace internal { -static inline bool HasValidityBitmap(Type::type id) { +inline constexpr bool HasValidityBitmap(Type::type id) { switch (id) { case Type::NA: case Type::DENSE_UNION: