leftibot 4465e0d4ca Fix #601: Allow operator functions to accept any type with an add() method
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: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 19:53:55 -06:00
..
chaiscript Fix #601: Allow operator functions to accept any type with an add() method 2026-04-13 19:53:55 -06:00