mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Made conversion of span<> to bool explicit
This commit is contained in:
parent
e5c76a68e0
commit
73ec688674
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user