prog.cpp: In instantiation of ‘void swap_pair(std::pair<_T1, _T2>&) [with T1 = const int; T2 = int]’:
prog.cpp:17:20: required from ‘void swap_map(std::map<K, V>&) [with K = int; V = int]’
prog.cpp:22:14: required from here
prog.cpp:9:13: error: assignment of read-only member ‘std::pair<const int, int>::first’
pair.first = std::move(pair.second);
^