Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- g++ -Wall -Wextra -pedantic -g -std=c++11 -pthread -o game main.cpp -lglfw3 -framework Cocoa -framework OpenGL -framework IOKit -framework CoreVideo
- In file included from main.cpp:47:
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/thread:342:5: error: attempt to use a deleted function
- __invoke(_VSTD::move(_VSTD::get<1>(__t)), _VSTD::move(_VSTD::get<_Indices>(__t))...);
- ^
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/thread:352:5: note: in instantiation of function template specialization 'std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct,
- std::__1::default_delete<std::__1::__thread_struct> >, RawThread>' requested here
- __thread_execute(*__p, _Index());
- ^
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/thread:368:47: note: in instantiation of function template specialization 'std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct,
- std::__1::default_delete<std::__1::__thread_struct> >, RawThread> >' requested here
- int __ec = __libcpp_thread_create(&__t_, &__thread_proxy<_Gp>, __p.get());
- ^
- main.cpp:68:17: note: in instantiation of function template specialization 'std::__1::thread::thread<RawThread &, void>' requested here
- mThread = new std::thread(std::forward<Function>(f),
- ^
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/utility:437:45: note: in instantiation of function template specialization 'RawThread::RawThread<RawThread &>' requested here
- : first(_VSTD::forward<_U1>(__u1)), second(_VSTD::forward<_U2>(__u2)) {}
- ^
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/utility:641:12: note: in instantiation of function template specialization 'std::__1::pair<unsigned int, RawThread>::pair<unsigned int &, RawThread &, false>' requested
- here
- return pair<typename __make_pair_return<_T1>::type, typename __make_pair_return<_T2>::type>
- ^
- main.cpp:95:24: note: in instantiation of function template specialization 'std::__1::make_pair<unsigned int &, RawThread &>' requested here
- threadMap.insert(std::make_pair(threadId, myThread));
- ^
- /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/type_traits:1666:5: note: '~__nat' has been explicitly marked deleted here
- ~__nat() = delete;
- ^
- 1 error generated.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement