Run Code  | Code Wall  | Users  | Misc  | Feedback  | About  | Login  | Theme  | Privacy 

boost::asyc fail with error C2280: attempting to reference a deleted f...

Language: Layout:
+ ] Compiler args + ] Show input
Compilation time: 4,67 sec, absolute service time: 4,69 sec 
fork mode |  history  | discussion
Error(s):
C:\boost_1_60_0\boost/thread/future.hpp(3801): error C2280: 'boost::detail::invoker<main::<lambda_25eb4cc6b459eecb16452a8eed4eb950>,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type>::invoker(const boost::detail::invoker<main::<lambda_25eb4cc6b459eecb16452a8eed4eb950>,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type> &)': attempting to reference a deleted function
C:\boost_1_60_0\boost/thread/detail/invoker.hpp(731): note: compiler has generated 'boost::detail::invoker<main::<lambda_25eb4cc6b459eecb16452a8eed4eb950>,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type>::invoker' here
C:\boost_1_60_0\boost/thread/future.hpp(3800): note: while compiling class template member function 'boost::detail::shared_state_nullary_task<Rp,Cont>::shared_state_nullary_task(const boost::detail::shared_state_nullary_task<Rp,Cont> &)'
        with
        [
            Rp=Rp
        ]
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\xutility(287): note: see reference to function template instantiation 'boost::detail::shared_state_nullary_task<Rp,Cont>::shared_state_nullary_task(const boost::detail::shared_state_nullary_task<Rp,Cont> &)' being compiled
        with
        [
            Rp=Rp
        ]
C:\boost_1_60_0\boost/thread/future.hpp(3858): note: see reference to class template instantiation 'boost::detail::shared_state_nullary_task<Rp,Cont>' being compiled
        with
        [
            Rp=Rp
        ]
C:\boost_1_60_0\boost/thread/future.hpp(3873): note: see reference to function template instantiation 'void boost::detail::future_executor_shared_state<Rp>::init<T,Executor>(Executor &,Fp &&)' being compiled
        with
        [
            Rp=Rp,
            T=boost::detail::invoker<main::<lambda_25eb4cc6b459eecb16452a8eed4eb950>,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type>,
            Executor=TestEx,
            Fp=boost::detail::invoker<main::<lambda_25eb4cc6b459eecb16452a8eed4eb950>,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type>
        ]
C:\boost_1_60_0\boost/thread/future.hpp(3873): note: see reference to function template instantiation 'void boost::detail::future_executor_shared_state<Rp>::init<T,Executor>(Executor &,Fp &&)' being compiled
        with
        [
            Rp=Rp,
            T=boost::detail::invoker<main::<lambda_25eb4cc6b459eecb16452a8eed4eb950>,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type>,
            Executor=TestEx,
            Fp=boost::detail::invoker<main::<lambda_25eb4cc6b459eecb16452a8eed4eb950>,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type>
        ]
C:\boost_1_60_0\boost/thread/future.hpp(3964): note: see reference to function template instantiation 'boost::future<void> boost::detail::make_future_executor_shared_state<Rp,boost::detail::invoker<main::<lambda_25eb4cc6b459eecb16452a8eed4eb950>,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type>,Executor>(Executor &,Fp &&)' being compiled
        with
        [
            Executor=TestEx,
            Fp=boost::detail::invoker<main::<lambda_25eb4cc6b459eecb16452a8eed4eb950>,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type,boost::tuples::null_type>
        ]
source_file.cpp(31): note: see reference to function template instantiation 'boost::future<void> boost::async<TestEx,main::<lambda_25eb4cc6b459eecb16452a8eed4eb950>>(Executor &,F &&)' being compiled
        with
        [
            Executor=TestEx,
            F=main::<lambda_25eb4cc6b459eecb16452a8eed4eb950>
        ]