due to the comparison in unsigned and signed types.
These can both be fixed by changing the mentioned lines from
it += this->m_holder.m_size; to it += static_cast<difference_type>(this->m_holder.m_size);
I'm consuming boost via the conan package manager, and it's not built as a system package, hence the warnings that would usually be suppressed.
Apologies if I'm missing something obvious as to why this is like this. Cheers.
Compiling the below file on Linux (clang10):
clang++ -std=c++17 a.cpp -I/my/path/to/boost/include -Wconversion
Results in warnings from this and this line in boost/container/vector.hpp
due to the comparison in unsigned and signed types.
These can both be fixed by changing the mentioned lines from
it += this->m_holder.m_size;
toit += static_cast<difference_type>(this->m_holder.m_size);
I'm consuming boost via the conan package manager, and it's not built as a system package, hence the warnings that would usually be suppressed.
Apologies if I'm missing something obvious as to why this is like this. Cheers.