commit | 73ec6886743ef1ab98e857e0db0197a2f3b2a4c8 | [log] [tgz] |
---|---|---|
author | Matus Chochlik <chochlik@gmail.com> | Thu Nov 19 10:27:08 2015 +0100 |
committer | Matus Chochlik <chochlik@gmail.com> | Thu Nov 19 10:27:08 2015 +0100 |
tree | 6ebbfd3b5ae9f62ca98c65de02a4ce6013f6f4fd | |
parent | e5c76a68e0d60cf4cbd6c66bf2ba39db55b8b339 [diff] [blame] |
Made conversion of span<> to bool explicit
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 @@ return m_pdata; } - constexpr operator bool() const noexcept + constexpr explicit operator bool() const noexcept { return m_pdata != nullptr; } @@ -1676,7 +1676,7 @@ return m_pdata; } - constexpr operator bool() const noexcept + constexpr explicit operator bool() const noexcept { return m_pdata != nullptr; }