fix missing is_secure function when building without ETL_HAS_STRING_CLEAR_AFTER_USE (#1067)

This commit is contained in:
Mario Luzeiro 2025-04-12 10:52:36 +01:00 committed by GitHub
parent 209e8ceedd
commit 520bcf876b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -283,15 +283,19 @@ namespace etl
{
flags.set<CLEAR_AFTER_USE>();
}
#endif
//*************************************************************************
/// Gets the 'secure' state flag.
//*************************************************************************
bool is_secure() const
{
#if ETL_HAS_STRING_CLEAR_AFTER_USE
return flags.test<CLEAR_AFTER_USE>();
}
#else
return false;
#endif
}
protected: