Guest User

Untitled

a guest
Mar 24th, 2018
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. void writeSite(string& site, const string& contentType);
  2.  
  3. no matching function for call to ‘writeSite(std::basic_ostringstream<char>::__string_type, const char [17])’
  4. writeSite(body.str(), "application/json");
  5.  
  6. std::ostringstream body;
  7.  
  8. body << "{";
  9.  
  10. // some more string building
  11.  
  12. body << "}";
  13.  
  14. std::string sbody = body.str();
  15.  
  16. writeSite(sbody, "application/json");
Add Comment
Please, Sign In to add comment