Why is #include "string.h" greyed out and does it still include it even though its greyed out. This is the only CPP source file in my project and so I know I'm not including it in another file. My TA said that its probably using the CPP version of string but later in the course it'll be a problem because we need to use the "string.h" version of string so I'd like to make sure its still including "string.h" even though its grey.
It’s greyed out if clion detects that you aren’t directly using something from the referenced header. It isn’t always correct in it’s detection process.
In this case, it is. There is a difference between string.h
and <string>
as an include.