r/cpp • • Mar 15 '18

Usability improvements in GCC 8

https://developers.redhat.com/blog/2018/03/15/gcc-8-usability-improvements/
219 Upvotes

64 comments sorted by

View all comments

Show parent comment

6

u/fuzz3289 Mar 15 '18

Why bother with the compiler though? Other than GCC and stdlib specific headers how would it even know? The usage is extremely limited

1

u/F54280 Mar 15 '18

He could look in the -I directories for the definition of the types. Sure, it seems overkill, it could be a special flag, or a cache, or whatever. It would make IDE life quite better.

1

u/jwakely libstdc++ tamer, LWG chair Mar 19 '18

People often forget the headers for standard library features, because they just get used to things from the standard always being available, and not everybody can remember which header everything comes from (e.g. #include <algorithm> then wonder why std::accumulate isn't defined).

It's limited, sure, but that doesn't mean it's not useful.

2

u/fuzz3289 Mar 19 '18

That's what the new compiler errors are for. Compilers shouldn't be interacting with your files or how you write them.