Answer the question
In order to leave comments, you need to log in
Cleaning strings in a c++ function, is it necessary?
I asked myself this question, is it necessary to clear the lines inside the function, does this make sense?
for example:
std::string test(std::string object)
{
std::string new_object = object;
std::string request = request_server(SOME_HOST, new_object);
new_object.clear();
return request;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question