diff options
Diffstat (limited to 'src/umod8.hh')
| -rw-r--r-- | src/umod8.hh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/umod8.hh b/src/umod8.hh index 4731942..4423f52 100644 --- a/src/umod8.hh +++ b/src/umod8.hh @@ -13,7 +13,7 @@ namespace umod8 { template <std::forward_iterator T> requires std::is_same_v<std::iter_value_t<T>, uint8_t> -std::expected<uint32_t, u::ReadError> read(T& start, const T& end) { +std::expected<uint32_t, u::ReadError> read(T& start, T const& end) { if (start == end) return std::unexpected(u::ReadError::End); uint32_t u; @@ -115,7 +115,7 @@ std::expected<uint32_t, u::ReadError> read(T& start, const T& end) { template <std::forward_iterator T> requires std::is_same_v<std::iter_value_t<T>, uint8_t> std::expected<uint32_t, u::ReadErrorReplace> read_replace(T& start, - const T& end, + T const& end, bool eof) { auto const tmp = start; auto ret = read(start, end); @@ -137,7 +137,7 @@ std::expected<uint32_t, u::ReadErrorReplace> read_replace(T& start, template <std::forward_iterator T> requires std::is_same_v<std::iter_value_t<T>, uint8_t> -bool write(T& start, const T& end, uint32_t code) { +bool write(T& start, T const& end, uint32_t code) { if (code > 0 && code < 0x80) { if (start == end) return false; |
