Open gcerretani opened 1 year ago
The problem depends by std::span
that does not provice a std::span<T>::const_iterator
, that is usually provided by the other standard containers.
Could be related to https://stackoverflow.com/questions/62757700/why-does-stdspan-lack-cbegin-and-cend-methods
Algorithms like
find_if
do not compile when used on instances ofstd::span
. They work withboost::span
.You can try this code on https://godbolt.org/z/Mq4GhqMYn:
The error message is something like
error: no type named 'type' in 'struct boost::range_iterator<const std::span<const int, 9>, void>'