I am still getting used to working with C/C++ and I don't want to 'overinclude' libraries.
I have a header where I would like to place methods for reading input data as well as those variables which I call ofun.h because it handles information pertaining to the objective function I am trying to optimize. In this header, I need the name of the data defined as string data_name;.
Should I #include <string> inside this header file? If this happens and I include <string> in another header file, say file_io.h, and then in my main routine I call
#include <string>
#include "ofun.h"
#include "file_io.h"
will this cause problems? If so, what is the best way/place to include standard libraries like this so that they don't collide?
 
     
     
    