Open ecatmur opened 3 years ago
FYI: it was caused by http://wg21.link/lwg3320 resolution and a subject of P2276.
any update on this?
I think we need to fix up the CI for testing this i.e. Appveyor and Github Actions (Travis is dead to us now). On top of that, this PR will need unit tests.
FYI: it was caused by http://wg21.link/lwg3320 resolution and a subject of P2276.
Thanks, yeah this is tricky - and also const_iterator
could be added back in future, it looks like.
I've taken the approach that we want the simplest possible solution that could work, which for now is ignoring const
on top of std::span
, and added enough tests that we'll find out if the Standard breaks us in future.
std::span does not have const_iterator member type, so this fails:
also
boost::begin()
andboost::end()
fail, and anything that calls them (e.g.boost::size()
).Demo.
I'm using 201902 as the feature test value on the basis that an implementation may have removed
const_iterator
(fixing LWG 3320) but not yet applied P1976R2 which updates the feature test to 202002L.