From 599a932dfe30925d315b51ec8f33553872238fb4 Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 16 Dec 2019 16:16:15 +1100 Subject: [PATCH] types/description: add arity_traits specialisation for std::array --- types/description.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/types/description.hpp b/types/description.hpp index fba1aa27..7db8e848 100644 --- a/types/description.hpp +++ b/types/description.hpp @@ -54,6 +54,13 @@ namespace cruft::types { > { }; + //------------------------------------------------------------------------- + template + struct arity_trait< + std::array + > : public std::integral_constant { }; + + //------------------------------------------------------------------------- template constexpr auto arity_v = arity_trait::value;