+ 1
Can any one help me on this?
Please help me to solve this. https://code.sololearn.com/cgQM317NwzSm/?ref=app
2 ответов
+ 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).
+ 1
Mohamed ELomari thanks