leftibot 11fec25112
Fix #625: function_less_than comparator violates strict-weak ordering (#654)
The function_less_than comparator used by std::stable_sort violated the
strict-weak ordering requirement in two ways: (1) functions with different
arities but matching overlapping parameters were treated as equivalent,
breaking transitivity, and (2) the dynamic_object_type_name comparison
silently fell through when one side had an empty type name. Fixed by
ordering by arity when overlapping parameters match, and imposing a total
order on dynamic object type names.

Co-authored-by: leftibot <leftibot@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Jason Turner <jason@emptycrate.com>
2026-04-11 16:42:40 -06:00
..
any.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
bad_boxed_cast.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
bind_first.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
bootstrap_stl.hpp Fix crash with out of bounds index (issue #572) 2021-07-08 18:55:36 +02:00
bootstrap.hpp Fix #459: Fill out the set of conversion functions for all POD types (#664) 2026-04-11 16:08:09 -06:00
boxed_cast_helper.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
boxed_cast.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
boxed_number.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
boxed_value.hpp Fix #17: Add const variables in ChaiScript (#643) 2026-04-10 22:12:13 -06:00
callable_traits.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
dispatchkit.hpp Fix #625: function_less_than comparator violates strict-weak ordering (#654) 2026-04-11 16:42:40 -06:00
dynamic_object_detail.hpp Fix #201: Suggestion: class Inheritance (#641) 2026-04-10 19:12:06 -06:00
dynamic_object.hpp Fix #201: Suggestion: class Inheritance (#641) 2026-04-10 19:12:06 -06:00
exception_specification.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
function_call_detail.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
function_call.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
function_params.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
function_signature.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
handle_return.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
operators.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
proxy_constructors.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
proxy_functions_detail.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
proxy_functions.hpp Fix #405: push_back() on script-created vector has no effect if vector_conversion is in effect (#663) 2026-04-11 15:45:22 -06:00
register_function.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
short_alloc.hpp change .clang-format and reformat code with clang-format 11 2021-05-24 10:44:15 +02:00
type_conversions.hpp Reimplement pair_conversion() helper 2021-06-18 16:40:38 +02:00
type_info.hpp Fix #17: Add const variables in ChaiScript (#643) 2026-04-10 22:12:13 -06:00