mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 13:37:42 -05:00
impr: Remove hex::format, improve format and logging type safety
This commit is contained in:
@@ -154,4 +154,13 @@ struct std::hash<hex::UnlocalizedString> {
|
||||
std::size_t operator()(const hex::UnlocalizedString &string) const noexcept {
|
||||
return std::hash<std::string>{}(string.get());
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
namespace fmt {
|
||||
|
||||
template<typename ... Args>
|
||||
auto format(const hex::Lang &entry, Args &&... args) {
|
||||
return fmt::format(fmt::runtime(entry.get()), std::forward<Args>(args)...);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user