diff options
author | Clyne Sullivan <clyne@bitgloo.com> | 2025-01-02 13:46:46 -0500 |
---|---|---|
committer | Clyne Sullivan <clyne@bitgloo.com> | 2025-01-02 13:46:46 -0500 |
commit | 7dd3348ad8e21d44743063335f5e112e66d1562f (patch) | |
tree | 94333f359bf4c9ac9be3e96c2e6ad36fd06f6c30 /to_string.hpp | |
parent | bd157e503a968ee3c470926cd540aa1d48ce6d02 (diff) |
copied from https://github.com/tcsullivan/constexpr-to-string/pull/7, forgot that github is a mirror now
Diffstat (limited to 'to_string.hpp')
-rw-r--r-- | to_string.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/to_string.hpp b/to_string.hpp index d0a4dbe..257718c 100644 --- a/to_string.hpp +++ b/to_string.hpp @@ -58,7 +58,7 @@ class to_string_t { // Element access constexpr auto data() noexcept { return buf; } - constexpr const auto data() const noexcept { return buf; } + constexpr auto data() const noexcept { return buf; } constexpr auto& operator[](unsigned int i) noexcept { return buf[i]; } constexpr const auto& operator[](unsigned int i) const noexcept { return buf[i]; } constexpr auto& front() noexcept { return buf[0]; } @@ -68,9 +68,9 @@ class to_string_t { // Iterators constexpr auto begin() noexcept { return buf; } - constexpr const auto begin() const noexcept { return buf; } + constexpr auto begin() const noexcept { return buf; } constexpr auto end() noexcept { return buf + size(); } - constexpr const auto end() const noexcept { return buf + size(); } + constexpr auto end() const noexcept { return buf + size(); } }; } // namespace constexpr_to_string |