https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119918
Bug ID: 119918 Summary: formattable<std::thread::id, T> returns true for types other than char and wchar_t Product: gcc Version: 14.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: tkaminsk at gcc dot gnu.org Target Milestone: --- We do not constrain the _CharT accepted by the formatter<thread::id, _CharT>, and as consequence formattable<std::thread:id, Any> is true for Any type: ``` static_assert(std::formattable<std::thread::id, int>); static_assert(std::formattable<std::thread::id, char16_t>); ``` // https://godbolt.org/z/858W9vfdT The standard also does not limit acceptable charT, however it does not supporting formatting of pointers/integer (underlying type of native handle) for types other than char and wchar_t.