From a7b5ed79afe56322dbd17288abba8e19f41c51a3 Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Sun, 4 Apr 2021 12:16:54 +0100 Subject: [PATCH] Added etl::histogram and etl::sparce_histogram --- include/etl/histogram.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/etl/histogram.h b/include/etl/histogram.h index 9d27288a..d314a0e2 100644 --- a/include/etl/histogram.h +++ b/include/etl/histogram.h @@ -20,6 +20,7 @@ namespace etl public: ETL_STATIC_ASSERT(etl::is_integral::value, "Only integral keys allowed"); + ETL_STATIC_ASSERT(etl::is_integral::value, "Only integral count allowed"); static ETL_CONSTANT size_t Max_Size = Max_Keys; @@ -210,6 +211,7 @@ namespace etl public: ETL_STATIC_ASSERT(etl::is_integral::value, "Only integral keys allowed"); + ETL_STATIC_ASSERT(etl::is_integral::value, "Only integral count allowed"); static ETL_CONSTANT size_t Max_Size = Max_Keys; @@ -405,6 +407,8 @@ namespace etl public: + ETL_STATIC_ASSERT(etl::is_integral::value, "Only integral count allowed"); + static ETL_CONSTANT size_t Max_Size = Max_Keys; typedef TKey key_type;