- I was wondering about any issues relating to minimising the number of included files in C++ code, for when compiling machine code.
- I noticed that min is not a built-in function, so I've replaced:
min(a, b)
with:
a < b ? a : b
The same applies to max. I wondered if other people add the include, or change the code, or use macros even, and whether there are other little issues like this. Thanks.
- I believe the include for the max/min functions is #include "windows.h"
C++: TDM-GCC: minimising includes
C++: TDM-GCC: minimising includes
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: C++: TDM-GCC: minimising includes
Yes there are many issues. I have summarized a few of the problems in my MCode tutorial.
Recommends AHK Studio
Who is online
Users browsing this forum: No registered users and 6 guests