view: add noexcept to data()

This prevents GCC from warning about possible noexcept additions
(-Wnoexcept)
This commit is contained in:
Danny Robson 2018-02-26 10:55:10 +11:00
parent 1f270f760f
commit 79d19b4f4f

View File

@ -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 (); }
///////////////////////////////////////////////////////////////////////