kkemchen / klog Goto Github PK
View Code? Open in Web Editor NEW基于spdlog封装,支持fmt\printf\流式输入
基于spdlog封装,支持fmt\printf\流式输入
项目采用 c++20
平台 window11
开发工具 Visual Studio 2022
当我直接复制你的代码过去还是会报错,我之前照着几个开源项目学习,每次都是会报错这个。
严重性 代码 说明 项目 文件 行 禁止显示状态 详细信息
错误 C7595 “fmt::v9::basic_format_string<char,const int &>::basic_format_string”: 对即时函数的调用不是常量表达式 C:\Users\wuxianggujun\CodeSpace\CmakeProjects\Tina\out\build\x64-Debug\Tina C:\Users\wuxianggujun\CodeSpace\CmakeProjects\Tina\engine\log\Logger.hpp 283
template <typename... Args>
inline void Logger::log(const spdlog::source_loc& loc, LogLevel lvl, const char* fmt,
const Args&... args)
{
spdlog::log(loc, static_cast<spdlog::level::level_enum>(lvl), fmt, args...);
}
```基本上就是这一句,找了很多方法,没办法只能将你的全部复制试试,还是报错。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.