mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Merge pull request #201 from matus-chochlik/master
Made conversion of span<> to bool explicit
This commit is contained in:
commit
4552575e34
@ -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