std::map<long long, std::unique_ptr<A>> listOf1;
std::map<long long, std::unique_ptr<A>> listOf2;
how can i add listOf1 to listOf2? Probably it's tricky because value is unique_ptr. Normall solution:
listOf2.insert(listOf1.begin(), listOf1.end());
doesn't work and give error
Severity Code Description Project File Line Source Suppression State Error C2280 'std::pair::pair(const std::pair &)': attempting to reference a deleted function c:\program files (x86)\microsoft visual studio 14.0\vc\include\xmemory0 737 Build
listOf2.insert(std::make_move_iterator(listOf1.begin()), std::make_move_iterator(listOf1.end()));
? – Jarod42