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: