From 520bcf876bbbc18cfb21780cd2b3c020215df455 Mon Sep 17 00:00:00 2001 From: Mario Luzeiro Date: Sat, 12 Apr 2025 10:52:36 +0100 Subject: [PATCH] fix missing is_secure function when building without ETL_HAS_STRING_CLEAR_AFTER_USE (#1067) --- include/etl/basic_string.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/etl/basic_string.h b/include/etl/basic_string.h index 40a8d0db..c17bf933 100644 --- a/include/etl/basic_string.h +++ b/include/etl/basic_string.h @@ -283,15 +283,19 @@ namespace etl { flags.set(); } +#endif //************************************************************************* /// Gets the 'secure' state flag. //************************************************************************* bool is_secure() const { +#if ETL_HAS_STRING_CLEAR_AFTER_USE return flags.test(); - } +#else + return false; #endif + } protected: