Open 7c0o opened 5 years ago
/// swaps the contents void swap(fifo_map& other) { std::swap(m_map, other.m_map); std::swap(m_compare, other.m_compare); std::swap(m_keys, other.m_keys); }
m_compare‘s member m_key point to m_map's m_key
The use the of the compiler-provided copy-assignment operator is also incorrect.
m_compare‘s member m_key point to m_map's m_key