I\'m trying to construct an object in a map that contains an atomic, so it can neither be copied nor moved AFAICT.
My reading of C++ reference is that map empl
empl
May be the following solution will be better, since atomic is not copyable:
class Z { std::atomic i; }; std::unordered_map> map; void test(void) { map.emplace(0, std::make_shared()); // OK }