In file included from /usr/include/c++/4.8/functional:55:0,
from /usr/include/c++/4.8/thread:39,
from main.cpp:2:
/usr/include/c++/4.8/tuple: In instantiation of 'constexpr std::_Head_base<_Idx, _Head, false>::_Head_base(const _Head&) [with long unsigned int _Idx = 1ul; _Head = MyThread]':
/usr/include/c++/4.8/tuple:257:44: recursively required from 'constexpr std::_Tuple_impl<_Idx, _Head, _Tail ...>::_Tuple_impl(const _Head&, const _Tail& ...) [with long unsigned int _Idx = 1ul; _Head = MyThread; _Tail = {int}]'
/usr/include/c++/4.8/tuple:257:44: required from 'constexpr std::_Tuple_impl<_Idx, _Head, _Tail ...>::_Tuple_impl(const _Head&, const _Tail& ...) [with long unsigned int _Idx = 0ul; _Head = std::_Mem_fn<void (MyThread::*)(int)>; _Tail = {MyThread, int}]'
/usr/include/c++/4.8/tuple:400:33: required from 'constexpr std::tuple< <template-parameter-1-1> >::tuple(const _Elements& ...) [with _Elements = {std::_Mem_fn<void (MyThread::*)(int)>, MyThread, int}]'
/usr/include/c++/4.8/functional:1710:74: required from 'std::_Bind_simple<_Callable(_Args ...)>::_Bind_simple(_Callable&&, _Args2&& ...) [with _Args2 = {MyThread&, int}; <template-parameter-2-2> = void; _Callable = std::_Mem_fn<void (MyThread::*)(int)>; _Args = {MyThread, int}]'
/usr/include/c++/4.8/functional:1759:41: required from 'typename std::_Bind_simple_helper<_Func, _BoundArgs>::__type std::__bind_simple(_Callable&&, _Args&& ...) [with _Callable = void (MyThread::*)(int); _Args = {MyThread&, int}; typename std::_Bind_simple_helper<_Func, _BoundArgs>::__type = std::_Bind_simple<std::_Mem_fn<void (MyThread::*)(int)>(MyThread, int)>]'
/usr/include/c++/4.8/thread:137:47: required from 'std::thread::thread(_Callable&&, _Args&& ...) [with _Callable = void (MyThread::*)(int); _Args = {MyThread&, int}]'
main.cpp:20:66: required from here
/usr/include/c++/4.8/tuple:135:25: error: use of deleted function 'MyThread::MyThread(const MyThread&)'
: _M_head_impl(__h) { }
^
main.cpp:5:7: note: 'MyThread::MyThread(const MyThread&)' is implicitly deleted because the default definition would be ill-formed:
class MyThread
^
main.cpp:5:7: error: use of deleted function 'std::thread::thread(const std::thread&)'
In file included from main.cpp:2:0:
/usr/include/c++/4.8/thread:126:5: error: declared here
thread(const thread&) = delete;
^
|