I have read How do you clear a stringstream variable? to clear the buffer by stringstream.str(""), or in other words - setting empty string. But if I
stringstream.str("")