diff --git a/libmamba/include/mamba/download/mirror.hpp b/libmamba/include/mamba/download/mirror.hpp index 68f9e6c36d..a53bc7e01c 100644 --- a/libmamba/include/mamba/download/mirror.hpp +++ b/libmamba/include/mamba/download/mirror.hpp @@ -8,6 +8,7 @@ #define MAMBA_DOWNLOAD_MIRROR_HPP #include +#include #include #include #include diff --git a/libmamba/include/mamba/fs/filesystem.hpp b/libmamba/include/mamba/fs/filesystem.hpp index 362c987ed6..4e49780b92 100644 --- a/libmamba/include/mamba/fs/filesystem.hpp +++ b/libmamba/include/mamba/fs/filesystem.hpp @@ -1371,7 +1371,7 @@ struct fmt::formatter<::mamba::fs::u8path> } template - auto format(const ::mamba::fs::u8path& path, FormatContext& ctx) + auto format(const ::mamba::fs::u8path& path, FormatContext& ctx) const { return fmt::format_to(ctx.out(), "'{}'", path.string()); } diff --git a/libmamba/include/mamba/specs/build_number_spec.hpp b/libmamba/include/mamba/specs/build_number_spec.hpp index 695d3f196f..ddb1e717ca 100644 --- a/libmamba/include/mamba/specs/build_number_spec.hpp +++ b/libmamba/include/mamba/specs/build_number_spec.hpp @@ -154,7 +154,7 @@ struct fmt::formatter { auto parse(format_parse_context& ctx) -> decltype(ctx.begin()); - auto format(const ::mamba::specs::BuildNumberPredicate& pred, format_context& ctx) + auto format(const ::mamba::specs::BuildNumberPredicate& pred, format_context& ctx) const -> decltype(ctx.out()); }; @@ -163,8 +163,8 @@ struct fmt::formatter { auto parse(format_parse_context& ctx) -> decltype(ctx.begin()); - auto - format(const ::mamba::specs::BuildNumberSpec& spec, format_context& ctx) -> decltype(ctx.out()); + auto format(const ::mamba::specs::BuildNumberSpec& spec, format_context& ctx) const + -> decltype(ctx.out()); }; template <> diff --git a/libmamba/include/mamba/specs/chimera_string_spec.hpp b/libmamba/include/mamba/specs/chimera_string_spec.hpp index c2f3112dd7..d675f547b7 100644 --- a/libmamba/include/mamba/specs/chimera_string_spec.hpp +++ b/libmamba/include/mamba/specs/chimera_string_spec.hpp @@ -74,8 +74,8 @@ struct fmt::formatter { auto parse(format_parse_context& ctx) -> decltype(ctx.begin()); - auto - format(const ::mamba::specs::ChimeraStringSpec& spec, format_context& ctx) -> decltype(ctx.out()); + auto format(const ::mamba::specs::ChimeraStringSpec& spec, format_context& ctx) const + -> decltype(ctx.out()); }; template <> diff --git a/libmamba/include/mamba/specs/glob_spec.hpp b/libmamba/include/mamba/specs/glob_spec.hpp index f4090f779d..706dd7591c 100644 --- a/libmamba/include/mamba/specs/glob_spec.hpp +++ b/libmamba/include/mamba/specs/glob_spec.hpp @@ -65,7 +65,8 @@ struct fmt::formatter { auto parse(format_parse_context& ctx) -> decltype(ctx.begin()); - auto format(const ::mamba::specs::GlobSpec& spec, format_context& ctx) -> decltype(ctx.out()); + auto + format(const ::mamba::specs::GlobSpec& spec, format_context& ctx) const -> decltype(ctx.out()); }; template <> diff --git a/libmamba/include/mamba/specs/match_spec.hpp b/libmamba/include/mamba/specs/match_spec.hpp index 1d690bacb1..2f08d43ddd 100644 --- a/libmamba/include/mamba/specs/match_spec.hpp +++ b/libmamba/include/mamba/specs/match_spec.hpp @@ -229,7 +229,8 @@ struct fmt::formatter<::mamba::specs::MatchSpec> { auto parse(format_parse_context& ctx) -> decltype(ctx.begin()); - auto format(const ::mamba::specs::MatchSpec& spec, format_context& ctx) -> decltype(ctx.out()); + auto + format(const ::mamba::specs::MatchSpec& spec, format_context& ctx) const -> decltype(ctx.out()); }; /********************************* diff --git a/libmamba/include/mamba/specs/regex_spec.hpp b/libmamba/include/mamba/specs/regex_spec.hpp index 78610549e1..3c8b41d0bd 100644 --- a/libmamba/include/mamba/specs/regex_spec.hpp +++ b/libmamba/include/mamba/specs/regex_spec.hpp @@ -71,7 +71,8 @@ struct fmt::formatter { auto parse(format_parse_context& ctx) -> decltype(ctx.begin()); - auto format(const ::mamba::specs::RegexSpec& spec, format_context& ctx) -> decltype(ctx.out()); + auto + format(const ::mamba::specs::RegexSpec& spec, format_context& ctx) const -> decltype(ctx.out()); }; #endif diff --git a/libmamba/include/mamba/specs/version.hpp b/libmamba/include/mamba/specs/version.hpp index 4cfd4b7cb4..ef4cb77feb 100644 --- a/libmamba/include/mamba/specs/version.hpp +++ b/libmamba/include/mamba/specs/version.hpp @@ -177,8 +177,8 @@ struct fmt::formatter { auto parse(format_parse_context& ctx) -> decltype(ctx.begin()); - auto - format(const ::mamba::specs::VersionPartAtom atom, format_context& ctx) -> decltype(ctx.out()); + auto format(const ::mamba::specs::VersionPartAtom atom, format_context& ctx) const + -> decltype(ctx.out()); }; template <> @@ -188,7 +188,7 @@ struct fmt::formatter auto parse(format_parse_context& ctx) -> decltype(ctx.begin()); - auto format(const ::mamba::specs::Version v, format_context& ctx) -> decltype(ctx.out()); + auto format(const ::mamba::specs::Version v, format_context& ctx) const -> decltype(ctx.out()); }; #endif diff --git a/libmamba/include/mamba/specs/version_spec.hpp b/libmamba/include/mamba/specs/version_spec.hpp index 7ed08ae8cd..50c1b746cf 100644 --- a/libmamba/include/mamba/specs/version_spec.hpp +++ b/libmamba/include/mamba/specs/version_spec.hpp @@ -229,8 +229,8 @@ struct fmt::formatter auto parse(format_parse_context& ctx) -> decltype(ctx.begin()); - auto - format(const ::mamba::specs::VersionPredicate& pred, format_context& ctx) -> decltype(ctx.out()); + auto format(const ::mamba::specs::VersionPredicate& pred, format_context& ctx) const + -> decltype(ctx.out()); }; template <> @@ -243,7 +243,8 @@ struct fmt::formatter auto parse(format_parse_context& ctx) -> decltype(ctx.begin()); - auto format(const ::mamba::specs::VersionSpec& spec, format_context& ctx) -> decltype(ctx.out()); + auto + format(const ::mamba::specs::VersionSpec& spec, format_context& ctx) const -> decltype(ctx.out()); }; template <> diff --git a/libmamba/src/api/install.cpp b/libmamba/src/api/install.cpp index 9a81292cba..abba952c53 100644 --- a/libmamba/src/api/install.cpp +++ b/libmamba/src/api/install.cpp @@ -9,6 +9,7 @@ #include #include #include +#include #include #include diff --git a/libmamba/src/core/context.cpp b/libmamba/src/core/context.cpp index e4acb04518..e58ad01b27 100644 --- a/libmamba/src/core/context.cpp +++ b/libmamba/src/core/context.cpp @@ -6,8 +6,8 @@ #include -#include #include +#include #include #include #include diff --git a/libmamba/src/core/query.cpp b/libmamba/src/core/query.cpp index 0861b544ae..3b5194cbf7 100644 --- a/libmamba/src/core/query.cpp +++ b/libmamba/src/core/query.cpp @@ -14,6 +14,7 @@ #include #include #include +#include #include "mamba/core/context.hpp" #include "mamba/core/output.hpp" diff --git a/libmamba/src/core/run.cpp b/libmamba/src/core/run.cpp index dadfe6724f..9644fcba48 100644 --- a/libmamba/src/core/run.cpp +++ b/libmamba/src/core/run.cpp @@ -26,6 +26,7 @@ extern "C" #include #include #include +#include #include #include #include diff --git a/libmamba/src/solver/libsolv/unsolvable.cpp b/libmamba/src/solver/libsolv/unsolvable.cpp index cfc14c79d5..cbbdcbbea7 100644 --- a/libmamba/src/solver/libsolv/unsolvable.cpp +++ b/libmamba/src/solver/libsolv/unsolvable.cpp @@ -8,6 +8,7 @@ #include #include +#include #include #include diff --git a/libmamba/src/specs/build_number_spec.cpp b/libmamba/src/specs/build_number_spec.cpp index 860c189883..90222da43c 100644 --- a/libmamba/src/specs/build_number_spec.cpp +++ b/libmamba/src/specs/build_number_spec.cpp @@ -113,7 +113,7 @@ auto fmt::formatter::format( const ::mamba::specs::BuildNumberPredicate& pred, format_context& ctx -) -> decltype(ctx.out()) +) const -> decltype(ctx.out()) { using BuildNumberPredicate = typename mamba::specs::BuildNumberPredicate; using BuildNumber = typename BuildNumberPredicate::BuildNumber; @@ -268,7 +268,7 @@ auto fmt::formatter::format( const ::mamba::specs::BuildNumberSpec& spec, format_context& ctx -) -> decltype(ctx.out()) +) const -> decltype(ctx.out()) { return fmt::format_to(ctx.out(), "{}", spec.m_predicate); } diff --git a/libmamba/src/specs/chimera_string_spec.cpp b/libmamba/src/specs/chimera_string_spec.cpp index 0260b063a7..01bc227264 100644 --- a/libmamba/src/specs/chimera_string_spec.cpp +++ b/libmamba/src/specs/chimera_string_spec.cpp @@ -140,7 +140,7 @@ auto fmt::formatter::format( const ::mamba::specs::ChimeraStringSpec& spec, format_context& ctx -) -> decltype(ctx.out()) +) const -> decltype(ctx.out()) { return fmt::format_to(ctx.out(), "{}", spec.str()); } diff --git a/libmamba/src/specs/glob_spec.cpp b/libmamba/src/specs/glob_spec.cpp index cbbe2aadf9..723ff13cbb 100644 --- a/libmamba/src/specs/glob_spec.cpp +++ b/libmamba/src/specs/glob_spec.cpp @@ -56,8 +56,10 @@ fmt::formatter::parse(format_parse_context& ctx) -> decl } auto -fmt::formatter::format(const ::mamba::specs::GlobSpec& spec, format_context& ctx) - -> decltype(ctx.out()) +fmt::formatter::format( + const ::mamba::specs::GlobSpec& spec, + format_context& ctx +) const -> decltype(ctx.out()) { return fmt::format_to(ctx.out(), "{}", spec.str()); } diff --git a/libmamba/src/specs/match_spec.cpp b/libmamba/src/specs/match_spec.cpp index d4fb4fbf98..0af970dbc4 100644 --- a/libmamba/src/specs/match_spec.cpp +++ b/libmamba/src/specs/match_spec.cpp @@ -9,6 +9,7 @@ #include #include +#include #include "mamba/specs/archive.hpp" #include "mamba/specs/match_spec.hpp" @@ -1069,7 +1070,7 @@ auto fmt::formatter<::mamba::specs::MatchSpec>::format( const ::mamba::specs::MatchSpec& spec, format_context& ctx -) -> decltype(ctx.out()) +) const -> decltype(ctx.out()) { using MatchSpec = ::mamba::specs::MatchSpec; diff --git a/libmamba/src/specs/package_info.cpp b/libmamba/src/specs/package_info.cpp index 28a192b4b9..dd4003bc33 100644 --- a/libmamba/src/specs/package_info.cpp +++ b/libmamba/src/specs/package_info.cpp @@ -11,6 +11,7 @@ #include #include +#include #include #include "mamba/specs/archive.hpp" diff --git a/libmamba/src/specs/regex_spec.cpp b/libmamba/src/specs/regex_spec.cpp index 4f5cca1fe0..2f970aa588 100644 --- a/libmamba/src/specs/regex_spec.cpp +++ b/libmamba/src/specs/regex_spec.cpp @@ -102,7 +102,7 @@ auto fmt::formatter::format( const ::mamba::specs::RegexSpec& spec, format_context& ctx -) -> decltype(ctx.out()) +) const -> decltype(ctx.out()) { return fmt::format_to(ctx.out(), "{}", spec.str()); } diff --git a/libmamba/src/specs/unresolved_channel.cpp b/libmamba/src/specs/unresolved_channel.cpp index ff7bb0942c..d59c028de0 100644 --- a/libmamba/src/specs/unresolved_channel.cpp +++ b/libmamba/src/specs/unresolved_channel.cpp @@ -13,6 +13,7 @@ #include #include +#include #include "mamba/fs/filesystem.hpp" #include "mamba/specs/archive.hpp" diff --git a/libmamba/src/specs/version.cpp b/libmamba/src/specs/version.cpp index d46115d95b..9a0bade8f9 100644 --- a/libmamba/src/specs/version.cpp +++ b/libmamba/src/specs/version.cpp @@ -191,7 +191,7 @@ auto fmt::formatter::format( const ::mamba::specs::VersionPartAtom atom, format_context& ctx -) -> decltype(ctx.out()) +) const -> decltype(ctx.out()) { return fmt::format_to(ctx.out(), "{}{}", atom.numeral(), atom.literal()); } @@ -792,7 +792,7 @@ fmt::formatter::parse(format_parse_context& ctx) -> declt auto fmt::formatter::format(const ::mamba::specs::Version v, format_context& ctx) - -> decltype(ctx.out()) + const -> decltype(ctx.out()) { auto out = ctx.out(); if (v.epoch() != 0) diff --git a/libmamba/src/specs/version_spec.cpp b/libmamba/src/specs/version_spec.cpp index 9180ee397c..c68058a68c 100644 --- a/libmamba/src/specs/version_spec.cpp +++ b/libmamba/src/specs/version_spec.cpp @@ -195,7 +195,7 @@ auto fmt::formatter::format( const ::mamba::specs::VersionPredicate& pred, format_context& ctx -) -> decltype(ctx.out()) +) const -> decltype(ctx.out()) { using VersionPredicate = typename mamba::specs::VersionPredicate; using VersionSpec = typename mamba::specs::VersionSpec; @@ -589,7 +589,7 @@ auto fmt::formatter::format( const ::mamba::specs::VersionSpec& spec, format_context& ctx -) -> decltype(ctx.out()) +) const -> decltype(ctx.out()) { using VersionSpec = typename mamba::specs::VersionSpec; diff --git a/libmamba/src/util/os_win.cpp b/libmamba/src/util/os_win.cpp index 49d6f8ab7b..2d10fdb06e 100644 --- a/libmamba/src/util/os_win.cpp +++ b/libmamba/src/util/os_win.cpp @@ -10,6 +10,7 @@ #include #include +#include #include #include "mamba/util/environment.hpp" diff --git a/micromamba/src/run.cpp b/micromamba/src/run.cpp index dbf1c1893d..1df4d9e877 100644 --- a/micromamba/src/run.cpp +++ b/micromamba/src/run.cpp @@ -10,6 +10,7 @@ #include #include +#include #include #include #include