Hacker News new | ask | show | jobs
by vbezhenar 1987 days ago
IMO a better approach would to define some way for compiler to undo all defines before standard header is included and redo those defines afterwards. Or just to stipulate that standard headers must be included before other user code.
1 comments

With modules, "hiding" code like that will be possible in C++.

If only we could skip forward a decade and get mature implementations of it right now...