etcd-cpp-apiv3/etcd
vegetableysm 7c6e714f18
Fix uint64_t type error with gcc 13.3. (#299)
Etcd compiles successfully using gcc version 9.4.0, but fails when using
version 13.3.0.


![image](https://github.com/user-attachments/assets/050723ea-1b09-4d99-abb5-06c9b59e153a)

The reason why gcc works with version 9.4.0 is that the \<string\>
include the \<char_traits.h\> that already include \<cstdint\>.

![image](https://github.com/user-attachments/assets/3bf2a72a-b997-4341-a820-48acda360899)

However, in version 13.3.0 of gcc, the \<char_traits.h\> header file
conditionally includes cstdint

![image](https://github.com/user-attachments/assets/490f2102-7d99-4cf4-8696-f3c0d7528fb9)

Therefore, including \<cstdint\> in Member.hpp is able to solve this
problem, which is also in line with the principle of
include-what-you-use.

Related issue: #297

Signed-off-by: vegetableysm <yuanshumin.ysm@alibaba-inc.com>
2025-03-28 09:33:53 +08:00
..
v3 Fix uint64_t type error with gcc 13.3. (#299) 2025-03-28 09:33:53 +08:00
Client.hpp Add the cluster manager api. (#276) 2024-08-02 10:30:43 +08:00
KeepAlive.hpp Enable -fno-exceptions support (#261) 2023-12-20 09:18:10 +08:00
Response.hpp Fix install error (#277) 2024-08-02 22:47:25 +08:00
SyncClient.hpp Add the cluster manager api. (#276) 2024-08-02 10:30:43 +08:00
Value.hpp Add a test to show that two watchers can co-work 2024-03-13 21:21:34 +08:00
Watcher.hpp Fixes the noisy logs when meets invalid addresses. (#260) 2023-12-20 00:32:00 +08:00