Skip to content

Commit faf1b03

Browse files
committed
container/internal: Explicitly include <cstdint>
GCC 15 will no longer include <cstdint> by default, resulting in build failures in projects that do not explicitly include it. Error: absl/container/internal/container_memory.h:66:27: error: ‘uintptr_t’ does not name a type 66 | assert(reinterpret_cast<uintptr_t>(p) % Alignment == 0 && | ^~~~~~~~~ absl/container/internal/container_memory.h:31:1: note: ‘uintptr_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’ 30 | #include "absl/utility/utility.h" +++ |+#include <cstdint> 31 | See-also: https://gcc.gnu.org/pipermail/gcc-cvs/2024-August/407124.html Signed-off-by: Christopher Fore <csfore@posteo.net>
1 parent 372124e commit faf1b03

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

absl/container/internal/container_memory.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
#include <cassert>
1919
#include <cstddef>
20+
#include <cstdint>
2021
#include <cstring>
2122
#include <memory>
2223
#include <new>

0 commit comments

Comments
 (0)