C
cppaddict
Say that your CustomClass.h header files requires
#include <string>
Now say that your CustomClass.cpp file also requires string. Is it
good form to repeat the <string> include to make the dependency
explicit, or do just allow the include to be make implicitly through
the .h include? That is, should the header of your .cpp file be:
#include "CustomClass.h"
OR:
#include <string>
#include "CustomClass.h"
thanks for any thoughts,
cpp
#include <string>
Now say that your CustomClass.cpp file also requires string. Is it
good form to repeat the <string> include to make the dependency
explicit, or do just allow the include to be make implicitly through
the .h include? That is, should the header of your .cpp file be:
#include "CustomClass.h"
OR:
#include <string>
#include "CustomClass.h"
thanks for any thoughts,
cpp