Following code returns empty string, why?
Qt Code:
{ QString rev; reverse_copy( str.begin(), str.end(), rev.begin() ); return rev; }To copy to clipboard, switch view to plain text mode
Added after 27 minutes:
Is the problem that reverse_copy in fact needs functionality of std::back_inserter, not just an iterator?
Bookmarks