<div class="ip-ubbcode-quote-content">I don't think you're allowed to dereference the end(). Iterators are frequently compared to end() to break out of loops, and ...