mirror of
https://github.com/gabime/spdlog.git
synced 2025-01-16 01:37:58 +00:00
Compare commits
2 Commits
817d2764b6
...
8302086942
Author | SHA1 | Date | |
---|---|---|---|
|
8302086942 | ||
|
6095db951b |
@ -300,15 +300,6 @@ 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
|
||||
|
||||
|
@ -54,8 +54,8 @@ public:
|
||||
void connect(const std::string &host, int port)
|
||||
{
|
||||
close();
|
||||
spdlog::info("Connecting..");
|
||||
struct addrinfo hints{};
|
||||
struct addrinfo hints
|
||||
{};
|
||||
memset(&hints, 0, sizeof(struct addrinfo));
|
||||
hints.ai_family = AF_INET; // IPv4
|
||||
hints.ai_socktype = SOCK_STREAM; // TCP
|
||||
|
Loading…
Reference in New Issue
Block a user