mirror of
https://github.com/ChaiScript/ChaiScript.git
synced 2026-05-01 03:19:28 +08:00
During overloaded function dispatch, when a function's parameter mismatches are all arithmetic-to-arithmetic (e.g., int where float is expected), the dispatcher now performs inline Boxed_Number conversion before calling the function. Previously, the function was called with mismatched types, threw bad_boxed_cast, and fell through to dispatch_with_conversions — a slow path on platforms like MSVC where exceptions are expensive under the debugger. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| chaiscript | ||