Can any one help me on this? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answers
+ 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
+ 1
3rd Dec 2018, 3:23 AM
$ยข๐Žโ‚น๐”ญ!๐จ๐“
$ยข๐Žโ‚น๐”ญ!๐จ๐“ - avatar