Code Monkey home page Code Monkey logo

klog's People

Contributors

kkemchen avatar

Stargazers

 avatar  avatar

Watchers

 avatar

klog's Issues

对即时函数的调用不是常量表达式

项目采用 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...);
   }
```基本上就是这一句,找了很多方法,没办法只能将你的全部复制试试,还是报错。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.