FireBall
asked on
concat std::string
How should i solve this :)
std::string RANGE ;
std::stringstream RANGEstream;
for (std::pair<long int, int> element : TTL) {
RANGEstream << element.first;
RANGE = RANGE + RANGEstream;
}
dinleyici.c:352:19: error: no match for ‘operator+’ (operand types are ‘std::string {aka std::basic_string<char>}’ and ‘std::stringstream {aka std::basic_stringstream<char>}’)
RANGE = RANGE + RANGEstream;
^
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
RANGE += RANGEstream.str();