commit | c39fe08b20cc71137fcce154f114492a566706f0 | [log] [tgz] |
---|---|---|
author | Eric Fiselier <eric@efcs.ca> | Wed Aug 22 17:47:13 2018 +0000 |
committer | Eric Fiselier <eric@efcs.ca> | Wed Aug 22 17:47:13 2018 +0000 |
tree | a164ffdd8a1c62b4e4574acb2fad61df69443af1 | |
parent | 1e22fa5b1b51d35324c42b33c3dec93ec6b6719d [diff] |
Add diagnostics for min/max algorithms when a InputIterator is used. These algorithms require a ForwardIterator or better. Ensure we diagnose the contract violation at compile time instead of of silently doing the wrong thing. Further algorithms will be audited in upcoming patches. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@340426 91177308-0d34-0410-b5e6-96231b3b80d8