+ 1

Can any one help me on this?

Please help me to solve this. https://code.sololearn.com/cgQM317NwzSm/?ref=app

1st Dec 2018, 4:32 PM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar
2 Respostas
+ 4
line 27 should be like that: thread t1(fun<char, 1000>, std::ref(a)); Tip: what you are passing as a template argument to fun is an array of references and that's not a legal type in C++, just as pointers to references and references to references are prohibited ( C++ Standard §8.3.2/4).
1st Dec 2018, 5:39 PM
MO ELomari
MO ELomari - avatar
+ 1
3rd Dec 2018, 3:23 AM
$¢𝐎₹𝔭!𝐨𝓝
$¢𝐎₹𝔭!𝐨𝓝 - avatar