Zeuthen: Writing a C library, part 1
Zeuthen: Writing a C library, part 1
Posted Jun 29, 2011 7:25 UTC (Wed) by gowen (guest, #23914)In reply to: Zeuthen: Writing a C library, part 1 by cmccabe
Parent article: Zeuthen: Writing a C library, part 1
You've created a ostringstream in order to write a string literal to it, in order to obtain the address of the string literal to pass to some logging function? You've created an unnecessary object and performed an unnecessary copy - and THAT is your sane-use-case counter example?