Started by ceeac, June 15, 2020, 01:53:04 PM
0 Members and 1 Guest are viewing this topic.
Quote from: prissi on June 15, 2020, 02:12:30 PMDid you test this on more than one compiler?
Quote from: Ters on June 15, 2020, 07:57:18 PMPersonally, I like to have inclusion of system headers (#include <>) before the project's own headers (#include "").
Quote from: ceeac on June 16, 2020, 07:50:47 PMThis also completely eliminates weird stuff like silently different compilation based on whether another header file is included before or not (for example windows.h which #defines min/max).
Quote from: ceeac on June 16, 2020, 07:50:47 PMSuppose you have a.h/cc and b.h/.cc where b.h contains a call to memcpy but does not #include <cstring>. This does not result in a compile error if you #include <cstring> in both a.cc and b.cc.