Menu

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

closed-duplicate
nobody
5
2008-12-09
2008-11-19
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
     

Log in to post a comment.