I have a "Common.h" file, which stores all the strings are reused across my project.
namespace Common{
static const std::string mystring = "IamAwesum";
}
So in any file that needs a particular string I include the file:
include "Common.h"
and then where I need the string I use:
Common::mystring
Now I noticed in Xcode, that none of the ".h" files are included in the target. But it seems my program works fine as expected. Can someone explain what happens to .h files? How does this work ? Is it because the file that "includes" "Common.h" has a copy of all the data ?