diff options
| author | Julian Andres Klode <julian.klode@canonical.com> | 2024-11-17 16:39:15 +0100 |
|---|---|---|
| committer | Julian Andres Klode <julian.klode@canonical.com> | 2024-11-17 16:41:33 +0100 |
| commit | db57773a96d1108bdad78ff3d1359a88d9689912 (patch) | |
| tree | f4f0cff946a14418921256f427ff3bdbf73ab3ce | |
| parent | 4f85954cb77b295d7853c420e918933293affed4 (diff) | |
string_view: Include missing headers
Specifically the lack of the `string_view` include is causing
compilation failures for rust-rust-apt.
Running iwyu also adds `algorithm` for our use of `std::min`,
and `iosfwd` for our use of `std::ostream` none of which seem
to be causing build failures so far.
| -rw-r--r-- | apt-pkg/contrib/string_view.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apt-pkg/contrib/string_view.h b/apt-pkg/contrib/string_view.h index 6224e2ac4..538e79a92 100644 --- a/apt-pkg/contrib/string_view.h +++ b/apt-pkg/contrib/string_view.h @@ -12,8 +12,11 @@ #if !defined(APT_STRINGVIEW_H) #define APT_STRINGVIEW_H #include <apt-pkg/macros.h> +#include <algorithm> #include <cstring> +#include <iosfwd> #include <string> +#include <string_view> #if APT_PKG_ABI > 600 namespace APT { |
