explicit thread_guard(std::thread& t_):
(error1:) thread_guard(thread_guard const&)=delete;
(error2:) thread_guard& operator=(thread_guard const&)=delete;
Gives syntax error ';' at error1, and unexpected token(s) preceding ';' at error1.
Gives the same syntax errors for error2.
The errors aren't threading errors, however, I am fairly new to C++ objects and mutlithreading.
Last edited on
Perhaps your compiler is too old to support deleted functions. You can work around by making those two functions private and not defined.
Cubbi, thanks for the answer. I will try that!
Bourgond Aries, the (error1-2:) sentences are included in the class