Unix fixes

This commit is contained in:
Kae 2023-06-29 02:31:12 +10:00
parent 422871450d
commit 306494bd2d
6 changed files with 12 additions and 14 deletions

View File

@ -4,9 +4,8 @@
#include "StarMemory.hpp" #include "StarMemory.hpp"
#include "StarOutputProxy.hpp" #include "StarOutputProxy.hpp"
#include <string> #include <string>
#include <sstream>
namespace Star { namespace Star {

View File

@ -5,7 +5,6 @@
#include "StarString_windows.hpp" #include "StarString_windows.hpp"
#include <DbgHelp.h> #include <DbgHelp.h>
#include <sstream>
namespace Star { namespace Star {

View File

@ -1136,7 +1136,3 @@ size_t hash<StringList>::operator()(StringList const& sl) const {
} }
} }
fmt::v10::appender fmt::formatter<Star::String>::format(Star::String const& s, format_context& ctx) const {
return formatter<std::string>::format(s.utf8(), ctx);
};

View File

@ -520,7 +520,11 @@ StringList StringList::sorted(Comparator&& comparator) const {
} }
template <> struct fmt::formatter<Star::String> : formatter<std::string> { template <> struct fmt::formatter<Star::String> : formatter<std::string> {
fmt::v10::appender format(Star::String const& s, format_context& ctx) const; auto format(Star::String const& s, format_context& ctx) const;
};
auto fmt::formatter<Star::String>::format(Star::String const& s, format_context& ctx) const {
return formatter<std::string>::format(s.utf8(), ctx);
}; };
#endif #endif

View File

@ -425,8 +425,4 @@ std::ostream& operator<<(std::ostream& os, StringView const& s) {
return os; return os;
} }
} }
fmt::v10::appender fmt::formatter<Star::StringView>::format(Star::StringView const& s, format_context& ctx) const {
return formatter<std::string_view>::format(s.utf8(), ctx);
};

View File

@ -116,7 +116,11 @@ private:
} }
template <> struct fmt::formatter<Star::StringView> : formatter<std::string_view> { template <> struct fmt::formatter<Star::StringView> : formatter<std::string_view> {
fmt::v10::appender format(Star::StringView const& s, format_context& ctx) const; auto format(Star::StringView const& s, format_context& ctx) const;
};
auto fmt::formatter<Star::StringView>::format(Star::StringView const& s, format_context& ctx) const {
return formatter<std::string_view>::format(s.utf8(), ctx);
}; };
#endif #endif