Is there a way to fix the format specifier warnings for stdint types?
Pascal's solution is the most direct and most idiomatic for a given particular type, but for writing is an alternative for printing arbitrary integer types whose definitions you don't know, just cast to
, then using
). However, this may not work for most / all versions of the MSVC standard library as they are lagging behind standards compliance.
source to share