diff --git a/cruft/util/fixed_string.hpp b/cruft/util/fixed_string.hpp index 975aace4..e88e63b3 100644 --- a/cruft/util/fixed_string.hpp +++ b/cruft/util/fixed_string.hpp @@ -21,6 +21,8 @@ namespace cruft { /// extensions). template struct fixed_string { + using value_type = char; + char value[N + 1] {}; static std::size_t size (void) { return N; } @@ -37,6 +39,9 @@ namespace cruft { constexpr char const* c_str (void) const noexcept { return value; } + + auto begin (void) const& noexcept { return std::begin (value); } + auto end (void) const& noexcept { return std::end (value); } };