prog.cpp: In function ‘int main()’:
prog.cpp:15:6: error: cannot bind rvalue reference of type ‘std::__cxx11::basic_string<char>&&’ to lvalue of type ‘std::__cxx11::string’ {aka ‘std::__cxx11::basic_string<char>’}
Bar(str);
^~~
prog.cpp:8:6: note: initializing argument 1 of ‘void Bar(C<T, Rest ...>&&) [with C = std::__cxx11::basic_string; T = char; Rest = {std::char_traits<char>, std::allocator<char>}]’
void Bar(C<T, Rest...>&& c) { }
^~~