Commit Graph

1 Commits

Author SHA1 Message Date
William S Fulton 54cabe945e C++11: cpp11_using_functor - Overloaded functor with %rename and %template
Test case for the C++11 form of the Overloaded functor helper: two
concrete type parameters with explicit using-declarations to merge their
operator() overloads.

%rename(call) maps operator() to a valid identifier so SWIG can wrap it.
%template instantiates Overloaded<IntCase,DoubleCase>: SWIG substitutes
I->IntCase, D->DoubleCase, the using-declarations resolve to known methods,
and the proxy class gets an overloaded call(int)/call(double) pair.

Assisted-by: Claude Code (claude-sonnet-4-6)
2026-05-28 20:16:15 +01:00