Skip to content
Commit 6e4ec602 authored by Eric Fiselier's avatar Eric Fiselier
Browse files

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.

llvm-svn: 355752
parent ce3be45c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment