Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

swap function is error #7

Open
opencnnet opened this issue Aug 28, 2019 · 1 comment
Open

swap function is error #7

opencnnet opened this issue Aug 28, 2019 · 1 comment

Comments

@opencnnet
Copy link

/// 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

@danielharvey458
Copy link

The use the of the compiler-provided copy-assignment operator is also incorrect.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants