Don't cast pointers to Python, print them as strings
| 258 | |
| 259 | /// Don't cast pointers to Python, print them as strings |
| 260 | inline const char *format_ptrs(const char *p) { return p; } |
| 261 | template <typename T> |
| 262 | py::str format_ptrs(T *p) { |
| 263 | return "{:#x}"_s.format(reinterpret_cast<std::uintptr_t>(p)); |
no test coverage detected