view: add noexcept to data()
This prevents GCC from warning about possible noexcept additions (-Wnoexcept)
This commit is contained in:
parent
1f270f760f
commit
79d19b4f4f
10
view.hpp
10
view.hpp
@ -251,19 +251,19 @@ namespace util {
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
constexpr BeginT begin (void) noexcept { return m_begin; }
|
||||
constexpr EndT end (void) noexcept { return m_end; }
|
||||
constexpr EndT end (void) noexcept { return m_end; }
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
constexpr const BeginT begin (void) const noexcept { return cbegin (); }
|
||||
constexpr const EndT end (void) const noexcept { return cend (); }
|
||||
constexpr const EndT end (void) const noexcept { return cend (); }
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
constexpr const BeginT cbegin (void) const noexcept { return m_begin; }
|
||||
constexpr const EndT cend (void) const noexcept { return m_end; }
|
||||
constexpr const EndT cend (void) const noexcept { return m_end; }
|
||||
|
||||
//---------------------------------------------------------------------
|
||||
auto data (void) { return begin (); }
|
||||
auto data (void) const { return begin (); }
|
||||
auto data (void) noexcept { return begin (); }
|
||||
auto data (void) const noexcept { return begin (); }
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
Reference in New Issue
Block a user