diff --git a/src/libutil/types.hh b/src/libutil/types.hh index 4974634d8..13cb062fb 100644 --- a/src/libutil/types.hh +++ b/src/libutil/types.hh @@ -11,6 +11,7 @@ #include #include #include +#include namespace nix { @@ -19,6 +20,10 @@ typedef std::set StringSet; typedef std::map StringMap; typedef std::map StringPairs; +// TODO this should be a std::byte span, but too much of the +// current codebase predates std::byte and uses char instead +using Bytes = std::span; + /** * Paths are just strings. */