leftibot e61be76531
Fix #601: Allow operator functions to accept any type with an add() method (#686)
The operator functions in chaiscript::bootstrap::operators (equal, not_equal,
assign, etc.) hardcoded Module& as their first parameter, preventing
chaiscript::utility::add_class for enum types from working when passed a
ChaiScript& reference directly. Added a second template parameter ModuleType
to all operator functions so they accept any type that provides an add()
method, matching the already-templatized add_class functions in utility.hpp.

Co-authored-by: leftibot <leftibot@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 20:20:11 -06:00
..
chaiscript Fix #601: Allow operator functions to accept any type with an add() method (#686) 2026-04-13 20:20:11 -06:00