#810 method not generated if static and instance methods the same

open
5
2011-01-24
2007-04-10
No

Swig does not create function wrapping if a static and instance method is named the same, with different args.

/**
* @file static.i
* @author gga
* @date Sun Apr 8 22:30:09 2007
*
* @brief remove issue
* @test swig -c++ -ruby -module static static.i
*
* @bug only static method remove() is created.
* instance method is not.
*
*
*/

class SharedImage
{
public:
int remove();

static int remove( const char* s );
};

Discussion

  • William Fulton
    William Fulton
    2011-01-24

    • summary: method not generated --> method not generated if static and instance methods the same
     
  • William Fulton
    William Fulton
    2011-01-24

    Bug #1752597 looks very similar.