Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#965 Multi-argument typemaps without variable names do not work

closed-duplicate
nobody
5
2008-12-09
2008-11-19
James Masters
No

I want to create a typemap for two sequential argument types but I don't want to specify the variable names. The documentation states that this should be possible, but multi-argument typemaps only seem to work when variable names are given:

-----------------------------
%module multi_test;

/*
// Does not work
%typemap(default) (int &, int &) {
// FOUND
}
*/

// Works
%typemap(default) (int &a, int &b) {
// FOUND
}

class Foobar {
public:
Foobar();
void test(int &a, int &b);
~Foobar();
};
-----------------------------

BTW, I saw this also reported at the following URL but did not find a bug submitted for it:
http://thread.gmane.org/gmane.comp.programming.swig/8527/focus=8536

Discussion

  • James Masters
    James Masters
    2008-11-19

    • status: open --> open-duplicate
     
  • William Fulton
    William Fulton
    2008-12-09

    Duplicate of 2313691.

     
  • William Fulton
    William Fulton
    2008-12-09

    • status: open-duplicate --> closed-duplicate