mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-16 08:56:06 +08:00
fix missing is_secure function when building without ETL_HAS_STRING_CLEAR_AFTER_USE (#1067)
This commit is contained in:
parent
209e8ceedd
commit
520bcf876b
@ -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:
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user