commit | 975cb9a72111e83c3fb03b8cc476593ef3628ec9 | [log] [tgz] |
---|---|---|
author | Eric Fiselier <eric@efcs.ca> | Fri Mar 08 22:58:59 2019 +0000 |
committer | Eric Fiselier <eric@efcs.ca> | Fri Mar 08 22:58:59 2019 +0000 |
tree | 620d2b209dbc2c834371895ad56d12baf7cb8680 | |
parent | 11e3f8c4d44bc339cbbf1198d3f643df2aa60c2e [diff] |
Fix PR41017 - Build failure with _LIBCPP_DEBUG=0 and non-const-ref comparator for std::sort() Our debug comparator assumed that the comparator it wraps would always accepts the values by const ref. This isn't required by the standard. This patch makes our __debug_less comparator forward the constness. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@355752 91177308-0d34-0410-b5e6-96231b3b80d8