« first day (2266 days earlier)      last day (593 days later) » 

5:07 PM
What happens if the container to which a std::span points changes size?
 
same rules as iterator invalidation apply I'd imagine
 
 
4 hours later…
9:16 PM
I'd like to have a std::span, or something that behaves like it, that executes custom code in the constructor and in the destructor. What's the best option? My first idea was using a wrapper class, but how could I stop someone from just copying the std::span member somewhere else?
 
10:06 PM
I thought about it and I changed my design, I don't need an answer anymore.
 

« first day (2266 days earlier)      last day (593 days later) »