1
0
mirror of https://github.com/gabime/spdlog.git synced 2025-01-16 01:37:58 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
gabime
8302086942 Fixed tcp_client 2020-03-04 15:40:04 +02:00
Gabi Melman
6095db951b
Update README.md 2020-03-04 14:12:56 +02:00
2 changed files with 2 additions and 11 deletions

View File

@ -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

View File

@ -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