It seems that std::atomic
types are not copy constructible or copy assignable.
Why?
Is there a technical reason why copying atomic types is not possible? Or is the interface limited on purpose to avoid some sort of bad code?
See Question&Answers more detail:os