From 73ec6886743ef1ab98e857e0db0197a2f3b2a4c8 Mon Sep 17 00:00:00 2001 From: Matus Chochlik Date: Thu, 19 Nov 2015 10:27:08 +0100 Subject: [PATCH] Made conversion of span<> to bool explicit --- include/span.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/span.h b/include/span.h index 8a406ee..dcce344 100644 --- a/include/span.h +++ b/include/span.h @@ -1434,7 +1434,7 @@ public: return m_pdata; } - constexpr operator bool() const noexcept + constexpr explicit operator bool() const noexcept { return m_pdata != nullptr; } @@ -1676,7 +1676,7 @@ public: return m_pdata; } - constexpr operator bool() const noexcept + constexpr explicit operator bool() const noexcept { return m_pdata != nullptr; }