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

boost/dynamic_bitset/dynamic_bitset.hpp:111:20: -Wdeprecated-copy warning #62

Open
Kojoley opened this issue Dec 15, 2021 · 0 comments
Open

Comments

@Kojoley
Copy link

Kojoley commented Dec 15, 2021

clang-linux.compile.c++ ../../../../bin.v2/libs/spirit/test/qi/qi_range_run.test/clang-linux-12/release/cxxstd-11-iso/stdlib-libc++/threading-multi/visibility-hidden/range_run.o
In file included from range_run.cpp:12:
In file included from ../../../../boost/dynamic_bitset.hpp:15:
../../../../boost/dynamic_bitset/dynamic_bitset.hpp:111:20: error: definition of implicit copy constructor for 'reference' is deprecated because it has a user-declared copy assignment operator [-Werror,-Wdeprecated-copy]
        reference& operator=(const reference& rhs) { do_assign(rhs); return *this; } // for b[i] = b[j]
                   ^
../../../../boost/dynamic_bitset/dynamic_bitset.hpp:306:16: note: in implicit copy constructor for 'boost::dynamic_bitset<unsigned int>::reference' first required here
        return reference(m_bits[block_index(pos)], bit_index(pos));
               ^
range_run.cpp:67:13: note: in instantiation of member function 'boost::dynamic_bitset<unsigned int>::operator[]' requested here
            bset[j-const_min] = set;
            ^
range_run.cpp:193:9: note: in instantiation of function template specialization 'acid_test<char>' requested here
        acid_test<char>();
        ^
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