Note that this is not the same as "using namespace std;" since you are only exporting the namespace std::string.
This should almost always be ok since no sane programmer should ever name their class string in the namespace of std.
As a developer, I wouldn't feel too bad about causing namespace conflicts in this manner because hopefully it will suggest to the maintainer that their class name is a poor choice.
This should almost always be ok since no sane programmer should ever name their class string in the namespace of std.
As a developer, I wouldn't feel too bad about causing namespace conflicts in this manner because hopefully it will suggest to the maintainer that their class name is a poor choice.