Let's say I have a header file with a class that uses std::string
.
#include <string>
class Foo
{
std::string Bar;
public:
// ...
}
The user of this header file might not want std::string
to be included in his/her project. So, how do I limit the inclusion to just the header file?