Skip to content
Snippets Groups Projects
Commit a50de751 authored by Sam Yates's avatar Sam Yates
Browse files

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.
parent 32600f69
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment