aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorswarmer <swarmer@yandex-team.com>2024-06-14 21:22:50 +0300
committerswarmer <swarmer@yandex-team.com>2024-06-14 21:34:55 +0300
commitc5cde75c98daf20325555a404da8534e6364a5c6 (patch)
tree4c9c5622f10d14e964e06557f4db18c7702d6985
parent89bc5efd2fbad262aa007012978e822fd6a09732 (diff)
downloadydb-c5cde75c98daf20325555a404da8534e6364a5c6.tar.gz
[util] Instantiation of TMaybe with an array type is ill-formed
69e5abfadd994602479be713abb69e2d6053734d
-rw-r--r--util/generic/maybe.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/generic/maybe.h b/util/generic/maybe.h
index b10c07e5fb..4b002fb8ab 100644
--- a/util/generic/maybe.h
+++ b/util/generic/maybe.h
@@ -47,6 +47,8 @@ private:
"Instantiation of TMaybe with a TInPlace type is ill-formed");
static_assert(!std::is_reference<T>::value,
"Instantiation of TMaybe with reference type is ill-formed");
+ static_assert(!std::is_array<T>::value,
+ "Instantiation of TMaybe with array type is ill-formed");
static_assert(std::is_destructible<T>::value,
"Instantiation of TMaybe with non-destructible type is ill-formed");