Skip to content

Commit 7dd3348

Browse files
committed
remove unnecessary const #7
copied from #7, forgot that github is a mirror now
1 parent bd157e5 commit 7dd3348

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

f_to_string.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class f_to_string_t {
6868
constexpr auto size() const noexcept { return sizeof(buf) / sizeof(buf[0]); }
6969
// Element access
7070
constexpr auto data() noexcept { return buf; }
71-
constexpr const auto data() const noexcept { return buf; }
71+
constexpr auto data() const noexcept { return buf; }
7272
constexpr auto& operator[](unsigned int i) noexcept { return buf[i]; }
7373
constexpr const auto& operator[](unsigned int i) const noexcept { return buf[i]; }
7474
constexpr auto& front() noexcept { return buf[0]; }
@@ -77,9 +77,9 @@ class f_to_string_t {
7777
constexpr const auto& back() const noexcept { return buf[size() - 1]; }
7878
// Iterators
7979
constexpr auto begin() noexcept { return buf; }
80-
constexpr const auto begin() const noexcept { return buf; }
80+
constexpr auto begin() const noexcept { return buf; }
8181
constexpr auto end() noexcept { return buf + size(); }
82-
constexpr const auto end() const noexcept { return buf + size(); }
82+
constexpr auto end() const noexcept { return buf + size(); }
8383
};
8484

8585
} // namespace constexpr_to_string

to_string.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class to_string_t {
5858

5959
// Element access
6060
constexpr auto data() noexcept { return buf; }
61-
constexpr const auto data() const noexcept { return buf; }
61+
constexpr auto data() const noexcept { return buf; }
6262
constexpr auto& operator[](unsigned int i) noexcept { return buf[i]; }
6363
constexpr const auto& operator[](unsigned int i) const noexcept { return buf[i]; }
6464
constexpr auto& front() noexcept { return buf[0]; }
@@ -68,9 +68,9 @@ class to_string_t {
6868

6969
// Iterators
7070
constexpr auto begin() noexcept { return buf; }
71-
constexpr const auto begin() const noexcept { return buf; }
71+
constexpr auto begin() const noexcept { return buf; }
7272
constexpr auto end() noexcept { return buf + size(); }
73-
constexpr const auto end() const noexcept { return buf + size(); }
73+
constexpr auto end() const noexcept { return buf + size(); }
7474
};
7575

7676
} // namespace constexpr_to_string

0 commit comments

Comments
 (0)