|Do you know where your variables are?|
Re^3: Can't create XSUBs for C functions with a same nameby davido (Archbishop)
|on Aug 23, 2012 at 16:02 UTC||Need Help??|
For what it's worth, Rob's code is also valid for C++ (and Inline::CPP):
While that's still not the same as function overloading, It's actually one of the best (clearest) examples I've seen anywhere on how to use the "..." parameter. I might have to add it to Inline::CPP's POD on some future release.
Another approach would be to use Inline::CPP, and wrap your functions in classes:
Of course with this process you're adding an additional Perl layer, so if your C++ subs are trivial, your performance will actually go down.
As the POD for Inline::CPP states, the module enables a large subset of C++, but not all of C++. Function overloading is one of those "not all" areas.