Talk:Straddling checkerboard: Difference between revisions

Line 42:
:: K. No point in including extra files then. [[User:MagiMaster|MagiMaster]] 18:15, 9 June 2011 (UTC)
::: In C and C++, removing headers and seeing if it compiles is ''never'' a good way to determine if a header is needed. It is very likely that your compiler's version of some other header you included (or some header it included, etc.) happen to have included <algorithm>, but it is possible that some other implementation of those same headers won't. To make your code portable you should always make sure to include the right headers for all the functions you use, from the language standard. min and max are defined in the <algorithm> header in section 25 (Algorithms library) of the C++ standard. Otherwise, what header do you think it's defined in? --[[User:Spoon!|Spoon!]] 20:02, 9 June 2011 (UTC)
:::: I don't really know where they're getting included. It works with both the major compilers, but it's fine to leave it as long as there's a reason. [[User:MagiMaster|MagiMaster]] 01:22, 10 June 2011 (UTC)
 
==Rename?==