From c7817efb0decbf3428c54c97b88f4295b506ce95 Mon Sep 17 00:00:00 2001 From: Vladimir Pinchuk Date: Sat, 12 Oct 2024 15:18:46 +0300 Subject: [PATCH] add etl::is_delegate_v --- include/etl/private/delegate_cpp11.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/etl/private/delegate_cpp11.h b/include/etl/private/delegate_cpp11.h index 1e7ec7242..1a276bb3b 100644 --- a/include/etl/private/delegate_cpp11.h +++ b/include/etl/private/delegate_cpp11.h @@ -100,6 +100,13 @@ namespace etl static constexpr bool value = etl::is_base_of::value; }; +#if ETL_USING_CPP17 + + template + inline constexpr bool is_delegate_v = is_delegate::value; + +#endif + //************************************************************************* /// Declaration. //*************************************************************************