当前位置:网站首页>C2338 Cannot format an argument. To make type T formattable provide a formatter<T> specialization:
C2338 Cannot format an argument. To make type T formattable provide a formatter<T> specialization:
2022-07-03 06:21:00 【hjxu2016】
C2338 Cannot format an argument. To make type T formattable provide a formatter<T> specialization: https://fmt.dev/latest/api.html#udt
在调用spdlog时,遇到了这个报错。
SPDLOG_LOGGER_CALL(logger, spdlog::level::level_enum::debug, "so {}", eCode);
是因为 eCode是一个枚举,而spdlog中的模板不支持枚举。
解决方案: int 强制转换。
SPDLOG_LOGGER_CALL(logger, spdlog::level::level_enum::debug, "so {}", int(eCode));
边栏推荐
猜你喜欢

GPS坐标转百度地图坐标的方法

Cesium Click to obtain the longitude and latitude elevation coordinates (3D coordinates) of the model surface

Merge and migrate data from small data volume, sub database and sub table Mysql to tidb

Creating postgre enterprise database by ArcGIS

phpstudy设置项目可以由局域网的其他电脑可以访问

tabbar的设置

Push box games C #

有意思的鼠标指针交互探究

轻松上手Fluentd,结合 Rainbond 插件市场,日志收集更快捷

.NET程序配置文件操作(ini,cfg,config)
随机推荐
[5g NR] UE registration process
Migrate data from Mysql to tidb from a small amount of data
PHP用ENV获取文件参数的时候拿到的是字符串
Heap sort and priority queue
Zhiniu stock project -- 04
JMeter performance automation test
IE browser flash back, automatically open edge browser
技术管理进阶——你了解成长的全貌吗?
Merge and migrate data from small data volume, sub database and sub table Mysql to tidb
轻松上手Fluentd,结合 Rainbond 插件市场,日志收集更快捷
Tabbar settings
Yolov1 learning notes
Click cesium to obtain three-dimensional coordinates (longitude, latitude and elevation)
使用 Abp.Zero 搭建第三方登录模块(一):原理篇
[untitled] 5 self use history
Scroll view specifies the starting position of the scrolling element
堆排序和优先队列
Nacos service installation
Creating postgre enterprise database by ArcGIS
【无标题】5 自用历程