spdlog
spdlog copied to clipboard
Error even when using const char*
This is first library where i can't even use const char* as string...
const char* tt = "test {}";
spdlog::debug(tt, std::source_location::current().file_name());
Is throwing a nice error
NOthing in docs of fmt work, any way to solve it or i just need to abandon fmt and spd?
Use fmt::runtime() to avoid compile-time-check: https://fmt.dev/11.0/api/#compile-time-checks
const char* tt = "test {}";
- spdlog::debug(tt, std::source_location::current().file_name());
+ spdlog::debug(fmt::runtime(tt), std::source_location::current().file_name());
Finally working solution! Thanks a lot tt4g! You can close this issue, i was sitting over it nearly 2 weeks and wanted to abandon spd and fmt.
Please please close this issue. I can't close this issue because I'm not the maintainer of this repository.