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

AssocVector implicit copy constructor warning #135

Open
Qix- opened this issue Apr 2, 2022 · 0 comments
Open

AssocVector implicit copy constructor warning #135

Qix- opened this issue Apr 2, 2022 · 0 comments

Comments

@Qix-
Copy link
Contributor

Qix- commented Apr 2, 2022

Getting the following error compiling with Clang and -Werror -Wextra -Wall:

../ext/kiwi/kiwi/AssocVector.h:139:22: error: definition of implicit copy constructor for 'AssocVector<kiwi::impl::Symbol, double>' is deprecated because it has a user-declared copyassignment operator [-Werror,-Wdeprecated-copy]
        AssocVector& operator=(const AssocVector& rhs)
                     ^
../ext/kiwi/kiwi/row.h:29:5: note: in implicit copy constructor for 'Loki::AssocVector<kiwi::impl::Symbol, double>' first required here
    Row(const Row &other) = default;
    ^
../ext/kiwi/kiwi/solverimpl.h:497:23: note: in defaulted copy constructor for 'kiwi::impl::Row' first required here
                m_rows[ art ] = new Row( row );

I will probably fix this and PR at some point but just wanted to point it out in case I forget.

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

1 participant