Clean code to printf size_t in C++ (or: Nearest equivalent of C99's %z in C++)
I have some C++ code that prints a size_t:
size_t a;
printf(\"%lu\", a);
I\'d like this to compile 开发者_运维百科without warnings on both 32- and 64-bit architectures.
          问答
          阅读(14)