From adfaf07874de431a24eadbb1908bd1b52817b4ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Seeb=C3=B6ck?= Date: Wed, 31 May 2023 11:29:43 +0200 Subject: [PATCH] optional(POD) explicit operator bool (#699) --- include/etl/optional.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }