Re:C++11 and Boost - Succinct like Python
by pcwalton on Wednesday October 31, 2012 @04:21PM
(#4724781)
I don't see how Boost algorithms provide the aliasing guarantees you need to avoid invalidating iterators. It's a very difficult problem. Even if you use a library to pipe instances of your custom string class to cout and you trust that library, the method or function that sends your custom string class to cout could perform arbitrary mutations, which would invalidate the iterator.
For example: