I have the next tiny code:
#include<atomic>
#include<deque>
int main() {
std::deque<std::atomic<int>> q;
q.push_back(0);
}
It doesn't work. It is tested with g++ 4.9.2 and g++ 6.3.0. The compilers produce a bit too long error message which essential part contains words:
error: use of deleted function ‘std::atomic::atomic(const std::atomic&)