当前位置:网站首页>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));
边栏推荐
- Read blog type data from mysql, Chinese garbled code - solved
- Migrate data from Amazon aurora to tidb
- UNI-APP中条件注释 实现跨段兼容、导航跳转 和 传参、组件创建使用和生命周期函数
- Shell conditional statement
- MySQL带二进制的库表导出导入
- Use abp Zero builds a third-party login module (I): Principles
- Luogu problem list: [mathematics 1] basic mathematics problems
- Heap sort and priority queue
- Leetcode problem solving summary, constantly updating!
- Zhiniu stock project -- 05
猜你喜欢
有意思的鼠标指针交互探究
2022 CISP-PTE(三)命令执行
有意思的鼠標指針交互探究
ruoyi接口权限校验
Oauth2.0 - use database to store client information and authorization code
Cesium 点击获取模型表面经纬度高程坐标(三维坐标)
Kubesphere - Multi tenant management
Oauth2.0 - Introduction and use and explanation of authorization code mode
Docker advanced learning (container data volume, MySQL installation, dockerfile)
论文笔记 VSALM 文献综述《A Comprehensive Survey of Visual SLAM Algorithms》
随机推荐
Page text acquisition
Cannot get value with @value, null
[set theory] relational closure (relational closure solution | relational graph closure | relational matrix closure | closure operation and relational properties | closure compound operation)
Une exploration intéressante de l'interaction souris - pointeur
The win7 computer can't start. Turn the CPU fan and stop it
【无标题】5 自用历程
Derivation of variance iteration formula
Simple password lock
远端rostopic的本地rviz调用及显示
Install VM tools
Print time Hahahahahaha
Heap sort and priority queue
方差迭代公式推导
Creating postgre enterprise database by ArcGIS
CKA certification notes - CKA certification experience post
Push box games C #
认识弹性盒子flex
从小数据量 MySQL 迁移数据到 TiDB
【LeetCode】Day93-两个数组的交集 II
opencv