prog.cpp: In function ‘int main()’:
prog.cpp:16:34: error: invalid initialization of non-const reference of type ‘std::string& {aka std::basic_string<char>&}’ from an rvalue of type ‘const char*’
print_indented(5, "some text"); // illegal
^
prog.cpp:9:6: error: in passing argument 2 of ‘void print_indented(std::size_t, std::string&)’
void print_indented(std::size_t dist, std::string& s)
^