mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 08:25:43 +08:00
Merge pull request #1450 from rabbull/fmt_string
Add example to FMT_STRING in README
This commit is contained in:
commit
c09641cf47
@ -300,6 +300,15 @@ void android_example()
|
||||
android_logger->critical("Use \"adb shell logcat\" to view this message.");
|
||||
}
|
||||
```
|
||||
---
|
||||
#### Compile-time format string syntax checking
|
||||
```C++
|
||||
#include "spdlog/spdlog.h"
|
||||
int main()
|
||||
{
|
||||
spdlog::info(FMT_STRING("{:d} is an invalid format tag"));
|
||||
}
|
||||
```
|
||||
|
||||
## Benchmarks
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user