Suppose I have a struct containing a std::string, like this:
struct userdata{ int uid; std::string username; }
Do I nee
std::string is reference-counted, and its copy constructor takes place. So nothing to worry about. Everything is handled correctly.