Run Code  | API  | Code Wall  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

c2

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 0.63 sec, absolute service time: 0,76 sec 
fork mode |  history
Error(s):
In file included from source_file.cpp:3:
/usr/include/c++/v1/thread:337:5: error: attempt to use a deleted function
    __invoke(_VSTD::move(_VSTD::get<0>(__t)), _VSTD::move(_VSTD::get<_Indices>(__t))...);
    ^
/usr/include/c++/v1/thread:347:5: note: in instantiation of function template specialization 'std::__1::__thread_execute<void (*)(double &), double, 1>' requested here
    __thread_execute(*__p, _Index());
    ^
/usr/include/c++/v1/thread:359:42: note: in instantiation of function template specialization 'std::__1::__thread_proxy<std::__1::tuple<void (*)(double &), double> >' requested here
    int __ec = pthread_create(&__t_, 0, &__thread_proxy<_Gp>, __p.get());
                                         ^
source_file.cpp:15:17: note: in instantiation of function template specialization 'std::__1::thread::thread<void (&)(double &), double &, void>' requested here
    std::thread pos_thread(updatePos,position); // does not compile
                ^
/usr/include/c++/v1/type_traits:1069:5: note: '~__nat' has been explicitly marked deleted here
    ~__nat() = delete;
    ^
1 error generated.

        

    
                
λ
.NET NoSQL database for rapid development