mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-22 20:06:05 +08:00
optional(POD) explicit operator bool (#699)
This commit is contained in:
parent
7147baac50
commit
adfaf07874
@ -763,7 +763,8 @@ namespace etl
|
||||
//***************************************************************************
|
||||
/// Bool conversion operator.
|
||||
//***************************************************************************
|
||||
ETL_CONSTEXPR14 operator bool() const
|
||||
ETL_CONSTEXPR14
|
||||
ETL_EXPLICIT operator bool() const
|
||||
{
|
||||
return valid;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user