I am running g++(gcc version 3.4.4) on cygwin.
I can't get this small snippet of code to compile. I included the appropriate headers.
int main(){
std::string temp("asgfsgfafgwwffw");
std::transform(temp.begin(),
temp.end(),
temp.begin(),
std::toupper);
std::cout << "result:" << temp << std::endl;
return 0;
}
I have not had any issues using STL containers such as vector. Does anyone have any suggestions or insights into this situation. Thanks.
From the link above.
This explains it quite well.
Which will boil down to this code: