Ubuntu – string append string_view unexpected result
#include <iostream> std::string_view return_string_view(); using namespace std; int main() { string got; auto peeked = return_string_view(); got += peeked; cout << got << endl; return 0; } string_view return_string_view() { string const s = string().assign( 2, 'x' ); auto sv…