3 ms·
The advice about the order of includes is interesting, as it's the exact opposite of my usual habit. I see the point, and I'll definitely consider adopting it.
by SloopJon 6y ago
The advice about the order of includes is interesting, as it's the exact opposite of my usual habit. I see the point, and I'll definitely consider adopting it.
One thing I've been bitten by in the past is that Clang / libc++ on Mac sometimes doesn't require a standard header that GCC / libstdc++ does. I don't think this pattern will fix that, though.
- zabzonk 6y agoThe C++ Standard says that for any implementation, any Standard header file may itself #include any other header file, or not. It's thus up to the programmer to always #include the headers for the Standard functions they use, if they wish their code to be at all portable.