From 10121716423ffd4c92c7d27742288d0aa9034fec Mon Sep 17 00:00:00 2001 From: Boris Zbarsky Date: Mon, 26 Jun 2023 12:02:33 -0400 Subject: [PATCH] Treat MutableCharSpan and MutableByteSpan as "basic types". (#27441) In particular, they are known to not be fabric-scoped. This should allow Encode() on these to work directly. --- src/app/data-model/BasicTypes.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/app/data-model/BasicTypes.h b/src/app/data-model/BasicTypes.h index 6bc1c967d18423..4011d7b2180e0c 100644 --- a/src/app/data-model/BasicTypes.h +++ b/src/app/data-model/BasicTypes.h @@ -56,12 +56,24 @@ struct IsBasicType static constexpr bool value = true; }; +template <> +struct IsBasicType +{ + static constexpr bool value = true; +}; + template <> struct IsBasicType { static constexpr bool value = true; }; +template <> +struct IsBasicType +{ + static constexpr bool value = true; +}; + } // namespace DataModel } // namespace app } // namespace chip