Skip to content

print.h 没有包含头文件 cstdint #39

Open
@naifulian

Description

@naifulian

我的gcc版本是 13.3.0,使用print.h和cppdemangle.h时遇到了print.h少包含头文件的问题,如下

In file included from main.cpp:2:
print.h: In function ‘std::ostream& _print_details::operator<<(std::ostream&, const print_adaptor<T, >&&)’:
print.h:312:64: error: ‘uintptr_t’ does not name a type
312 | os << "[object 0x" << std::hex << reinterpret_cast<uintptr_t>(
| ^~~~~~~~~
print.h:10:1: note: ‘uintptr_t’ is defined in header ‘’; did you forget to ‘#include ’?
9 | #include
+++ |+#include
10 | // #include

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions