Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
boost::asyc fail with error C2280: attempting to reference a deleted function
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x86 #define BOOST_THREAD_PROVIDES_FUTURE #define BOOST_THREAD_PROVIDES_FUTURE_CONTINUATION #define BOOST_THREAD_PROVIDES_EXECUTORS #include <boost/thread/future.hpp> class TestEx { public: void submit(std::function<void()>) { } bool try_executing_one() { return false; } bool closed() { return false; } void close() { } }; int main() { TestEx tex; boost::async( tex, []() {}); return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
What is the fastest/most efficient way to find the highest set bit (msb) in an integer in C?
iterator by value, by reference
Regex success
ntohl
program_solution_3
MSVCStatic
fun
#33
PreprocessorVsNamespace
asock
Please log in to post a comment.