Code: Select all
void talk(std::string& string)
{
for (volatile int i{0}; i < string.length(); ++i)
{
if (string[i] != '\n')
{
if (i > 0 && string[i - 1] == '\n') std::cout &), std::__cxx11::basic_string, std::allocator > > >’
258 | _M_invoke(_Index_tuple)
| ^~~~~~~~~
/usr/include/c++/11/bits/std_thread.h:262:9: error: no type named ‘type’ in ‘struct std::thread::_Invoker, std::allocator >&), std::__cxx11::basic_string, std::allocator > > >::__result, std::allocator >&), std::__cxx11::basic_string, std::allocator > > >’
262 | operator()()
| ^~~~~~~~