diff --git a/include/etl/optional.h b/include/etl/optional.h index 63987319..bb1a3f12 100644 --- a/include/etl/optional.h +++ b/include/etl/optional.h @@ -763,7 +763,8 @@ namespace etl //*************************************************************************** /// Bool conversion operator. //*************************************************************************** - ETL_CONSTEXPR14 operator bool() const + ETL_CONSTEXPR14 + ETL_EXPLICIT operator bool() const { return valid; }