optional(POD) explicit operator bool (#699)

This commit is contained in:
Manuel Seeböck 2023-05-31 11:29:43 +02:00 committed by GitHub
parent 7147baac50
commit adfaf07874
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -763,7 +763,8 @@ namespace etl
//***************************************************************************
/// Bool conversion operator.
//***************************************************************************
ETL_CONSTEXPR14 operator bool() const
ETL_CONSTEXPR14
ETL_EXPLICIT operator bool() const
{
return valid;
}