mirror of
https://github.com/spice2x/spice2x.github.io.git
synced 2026-08-02 06:40:42 -07:00
build: update fmt library to 12.1.0 (#449)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "fileutils.h"
|
||||
|
||||
#include <algorithm>
|
||||
#include <fstream>
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
||||
@@ -42,13 +42,12 @@ struct fmt_log {
|
||||
|
||||
template<>
|
||||
struct fmt::formatter<fmt_log> {
|
||||
template<typename ParseContext>
|
||||
constexpr auto parse(ParseContext &ctx) {
|
||||
constexpr auto parse(format_parse_context &ctx) {
|
||||
return ctx.begin();
|
||||
}
|
||||
|
||||
template<typename FormatContext>
|
||||
auto format(const fmt_log &v, FormatContext &ctx) {
|
||||
auto format(const fmt_log &v, FormatContext &ctx) const {
|
||||
return format_to(ctx.out(), FMT_COMPILE("{} {}:{}: "), log_get_datetime(v.ts), v.level, v.module);
|
||||
}
|
||||
};
|
||||
@@ -60,13 +59,12 @@ struct fmt_hresult {
|
||||
|
||||
template<>
|
||||
struct fmt::formatter<fmt_hresult> {
|
||||
template<typename ParseContext>
|
||||
constexpr auto parse(ParseContext &ctx) {
|
||||
constexpr auto parse(format_parse_context &ctx) {
|
||||
return ctx.begin();
|
||||
}
|
||||
|
||||
template<typename FormatContext>
|
||||
auto format(const fmt_hresult &v, FormatContext &ctx) {
|
||||
auto format(const fmt_hresult &v, FormatContext &ctx) const {
|
||||
return format_to(ctx.out(), FMT_COMPILE("0x{:08x}"), static_cast<unsigned>(v.result));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <algorithm>
|
||||
#include <locale>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
Reference in New Issue
Block a user