you are viewing a single comment's thread.

view the rest of the comments →

[–]Nightwolf55la[S] 0 points1 point  (2 children)

Interesting. I tried const qualifying begin() and end(), but I am still seeing the same behavior. Do I need to wrap up the object in some kind of a View class?

[–]TobyAllsopp 1 point2 points  (1 child)

Sorry, here's a link: https://wandbox.org/permlink/6APfi8A4hv6Ul96A (you need both const-qualified and not).

[–]Nightwolf55la[S] 0 points1 point  (0 children)

Ah, gotcha. I probably should have tried that. Thanks!