A
asit
what's wrong with the following code
#include <string>
#include <algorithm>
#include <cctype>
char *name = "HHTT KKK KHH";
std::string lname( name );
std::transform( lname.begin(), lname.end(), lname.begin(), tolower );
The error comes in the last line.
C:\web\httpgrab122\happyhttp.cpp|514|error: no matching function for call to 'transform(__gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, <unresolved overloaded function type>)'|
||=== Build finished: 1 errors, 5 warnings ===|
#include <string>
#include <algorithm>
#include <cctype>
char *name = "HHTT KKK KHH";
std::string lname( name );
std::transform( lname.begin(), lname.end(), lname.begin(), tolower );
The error comes in the last line.
C:\web\httpgrab122\happyhttp.cpp|514|error: no matching function for call to 'transform(__gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, __gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, <unresolved overloaded function type>)'|
||=== Build finished: 1 errors, 5 warnings ===|