What is the right way to pass reference to string from one function to another?
For instance:
Is this a right way to do it, if I want to pass it more than once/twice.. ?Code:class someclass {
public:
someclass(std::string &test) { somefunction(test) }
void somefunction(std::string &test) {
}
}