Skip to main content
6 events
when toggle format what by license comment
Sep 23, 2019 at 20:17 history edited mreff555 CC BY-SA 4.0
Added a more safe preprocessor definition
May 27, 2015 at 17:12 comment added mreff555 Interesting. I wasn't aware of std::max. nor std::swap. I guess I need to look through the std libraries at some point. MichaelT, your point is well taken. However, I still feel that a strong understanding of operators should be an early fundamental for learning c/c++
May 27, 2015 at 14:07 comment added Morwenn Why define a max macro when there is already the safer std::max in the standard library? :(
May 27, 2015 at 14:06 comment added user22048 You can get into some rather dangerous waters with that max macro if you do things such as max(foo + 1, bar). Code golf is great for people who understand the full set of tricks for the language, but code that is understandable to the coder(or next person) is often something to strive for. Clever code needs you to be more clever to debug it - and if the code is at your edge of cleverness this can cause problems.
May 27, 2015 at 14:03 review First posts
May 27, 2015 at 14:05
May 27, 2015 at 13:59 history answered mreff555 CC BY-SA 3.0