Made conversion of span<> to bool explicit

This commit is contained in:
Matus Chochlik 2015-11-19 10:27:08 +01:00
parent e5c76a68e0
commit 73ec688674

View File

@ -1434,7 +1434,7 @@ public:
return m_pdata; return m_pdata;
} }
constexpr operator bool() const noexcept constexpr explicit operator bool() const noexcept
{ {
return m_pdata != nullptr; return m_pdata != nullptr;
} }
@ -1676,7 +1676,7 @@ public:
return m_pdata; return m_pdata;
} }
constexpr operator bool() const noexcept constexpr explicit operator bool() const noexcept
{ {
return m_pdata != nullptr; return m_pdata != nullptr;
} }