Can't std::sort on forward iterators.
But GNU libstc++ tries to anyway, hilarious segfaults ensue. * Don't try and sort a sentinel-terminated range. * Instead provide a `strict_view` that walks a range (if required) and presents a range with a proper end iterator. * Tests, const range (but non-const iterator) implementations.
Please register or sign in to comment