cout << ((string*)tmp.second()).c_str();
^^
you are casting to a string*
. It should be just string
(or nothing at all) because the second
of pair<HTTPResponse,string>
is just a string
.
and second is a just member not a member function so it should be tmp.second
cout << tmp.second.c_str();