Using the default str() example from: http://www.cplusplus.com/reference/sstream/stringstream/str/
// stringstream::str
#include <string> // std::string
#include <iostream> // std::cout
#include <sstream> // std::stringstream, std::stringbuf
int main () {
std::stringstream ss;
ss.str ("Example string");
std::string s = ss.str();
std::cout << s << '\n';
return 0;
}
The code helper is saying str()
could not be resolved, when building there is no errors related to str()
I have CDT GCC Built-in Compiler Settings
on in Eclipse
And unchecked use global provider with the flags:
"${COMMAND} ${FLAGS} -E -P -v -dD -std=c++11 "${INPUTS}"
I also tried changing toolchains back and forth but no luck.