This is the mail archive of the cygwin-talk mailing list for the cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
C'mon, while it is slightly longer than the sprintf() version for such simple thing as printing single hexadecimal number, there are plenty of things sprintf() just doesn't offer that you can do with C++ IO streams.
Because writing
hex << setw (8) << setfill ('0') << ((uintptr_t)(x)) << dec << setfill (' ')
is just soooooo much easier and more self-consistent and less typing than
"%08x", x
<grrrspit>
cheers, DaveK
-- VH
Attachment:
signature.asc
Description: OpenPGP digital signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |