morganstanley / modern-cpp-kafka

A C++ API for Kafka clients (i.e. KafkaProducer, KafkaConsumer, AdminClient)
Apache License 2.0
331 stars 86 forks source link

Fix `gcc-13` build failure (missing `<cstdint>` include) #229

Closed trofi closed 4 days ago

trofi commented 4 months ago

Without the change build on gcc-13 fails as:

In file included from /build/source/tests/unit/TestKafkaMetrics.cc:1:
/build/source/include/kafka/addons/KafkaMetrics.h:46:22: error: 'int64_t' is not a member of 'std'; did you mean 'int64_t'?
   46 |     ResultsType<std::int64_t> getInt(const KeysType& keys) const { return get<std::int64_t>(keys); }
      |                      ^~~~~~~
kenneth-jia commented 4 days ago

Hi, @trofi, Thank you for pointing it out! Your fix has been merged together with PR https://github.com/morganstanley/modern-cpp-kafka/pull/232. Cheers!

alex-q-chen commented 4 days ago

v2024.07.03 contains the fix.