User talk:Mtrenkmann

'\n' vs. std::endl
Hi! I saw you like instead of. There's no need to use, except in rare cases, because actually results in , as was pointed out here. P12 18:14, 8 September 2011 (PDT)
 * Ok, thanks for the link to the discussion. I am aware that always flushes the stream and that just writing  is more performant. But in my mind, these small examples should only demonstrate some language feature, where readability and code clarity is more important. In Josuttis "The C++ Standard Library" all examples are presented that way. Anyway, I will follow your rules here and do better, thx. mtrenkmann 18:39, 8 September 2011 (PDT)
 * In my opinion, it's not so much about performance (although premature pessimisation is never good either) as it's about semantics. is not exactly end of line, while  is exactly (platform-dependent) end of line. Also, Stroustrup is probably the better role model. --Cubbi 20:20, 8 September 2011 (PDT)
 * You're right. Indeed, there is no doubt about Stroustrup ;-) --mtrenkmann 14:47, 9 September 2011 (PDT)