Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

swap function is error #7

Open
7c0o opened this issue Aug 28, 2019 · 1 comment
Open

swap function is error #7

7c0o opened this issue Aug 28, 2019 · 1 comment

Comments

@7c0o
Copy link

7c0o commented Aug 28, 2019

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

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

No branches or pull requests

2 participants