Closed
Description
If I compile with Clang, I get the following warning:
.../3.6/RcppThread/include/RcppThread/ThreadPool.hpp:37:17: warning: explicitly defaulted move assignment operator is implicitly deleted [-Wdefaulted-function-deleted]
ThreadPool& operator=(ThreadPool&& other) = default;
^
.../R/x86_64-pc-linux-gnu-library/3.6/RcppThread/include/RcppThread/ThreadPool.hpp:77:16: note: move assignment operator of 'ThreadPool' is implicitly deleted because field 'mTasks_' has a deleted move assignment operator
std::mutex mTasks_;
^
/usr/bin/../lib64/gcc/x86_64-pc-linux-gnu/9.1.0/../../../../include/c++/9.1.0/bits/std_mutex.h:95:12: note: 'operator=' has been explicitly marked deleted here
mutex& operator=(const mutex&) = delete;
^
1 warning generated.
Metadata
Metadata
Assignees
Labels
No labels