summaryrefslogtreecommitdiff
path: root/src/u8.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/u8.hh')
-rw-r--r--src/u8.hh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/u8.hh b/src/u8.hh
index 048af4f..3c1d19e 100644
--- a/src/u8.hh
+++ b/src/u8.hh
@@ -1,12 +1,13 @@
#ifndef U8_HH
#define U8_HH
+#include "u.hh" // IWYU pragma: export
+
#include <cstdint> // IWYU pragma: export
#include <expected>
#include <iterator>
#include <type_traits>
-
-#include "u.hh" // IWYU pragma: export
+#include <utility>
namespace u8 {
@@ -116,6 +117,7 @@ std::expected<uint32_t, u::ReadErrorReplace> read_replace(T& start,
case u::ReadError::Invalid:
return 0xfffd;
}
+ std::unreachable();
}
template<std::forward_iterator T>