mirror of
https://github.com/microsoft/GSL.git
synced 2025-03-27 23:38:29 -04: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…
x
Reference in New Issue
Block a user