0

I am experimenting with proxy reference class as some_iterator::reference and discovered that I need const assignment operator to satisfy std::indirectly_writable.

Why do normal iterators with pure references satisfy this concept?

JaMiT
  • 14,422
  • 4
  • 15
  • 31
deezo
  • 11
  • 2
  • 1
    "*For "normal" ranges (say, `vector`, the `iter_reference_t` gives you `int&`, and `const iter_reference_t&&` is... still just `int&`. That's why this just works.*" see https://stackoverflow.com/a/63413121/11638718 – 康桓瑋 Feb 07 '23 at 15:40

0 Answers0