当前位置:网站首页>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));
边栏推荐
- YOLOV2学习与总结
- Heap sort and priority queue
- Push box games C #
- Oauth2.0 - Introduction and use and explanation of authorization code mode
- Cesium 点击获三维坐标(经纬度高程)
- Some thoughts on machine learning
- 代码管理工具
- Printer related problem record
- Introduction to software engineering
- Click cesium to obtain three-dimensional coordinates (longitude, latitude and elevation)
猜你喜欢

Mysql

使用 Abp.Zero 搭建第三方登录模块(一):原理篇

IE browser flash back, automatically open edge browser

技术管理进阶——你了解成长的全貌吗?

JMeter performance automation test

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

Selenium - 改变窗口大小,不同机型呈现的宽高长度会不一样

SSH link remote server and local display of remote graphical interface
![[5g NR] UE registration process](/img/e3/f881d51fba03010de8c45ea480f3f0.png)
[5g NR] UE registration process

Reinstalling the system displays "setup is applying system settings" stationary
随机推荐
Merge and migrate data from small data volume, sub database and sub table Mysql to tidb
Use @data in Lombok to simplify entity class code
ssh链接远程服务器 及 远程图形化界面的本地显示
认识弹性盒子flex
In depth analysis of kubernetes controller runtime
Simple understanding of ThreadLocal
Cesium Click to obtain the longitude and latitude elevation coordinates (3D coordinates) of the model surface
Important knowledge points of redis
Kubesphere - build Nacos cluster
Request weather interface format, automation
Oauth2.0 - Introduction and use and explanation of authorization code mode
数值法求解最优控制问题(一)——梯度法
The win7 computer can't start. Turn the CPU fan and stop it
Oauth2.0 - explanation of simplified mode, password mode and client mode
[set theory] equivalence relation (concept of equivalence relation | examples of equivalence relation | equivalence relation and closure)
Mysql database binlog log enable record
Virtual memory technology sharing
Zhiniu stock -- 03
Push box games C #
Project summary --2 (basic use of jsup)