Forum: Ruby SWIG typemap problem

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
unknown (Guest)
on 2006-04-04 18:09
(Received via mailing list)
hi all!

i have a problem using swig. I wrap the follwing c++ class using an
array typemap

// c++ class
class Foo {
     void SetPoint(int id, const double x[3]);

// in .i file
%typemap(ruby,in) const double value[ANY] {
  ... convert ruby array in c++ array

i wrap this with swig i can use it it lin ruby ike that:
f =
f.SetPoint(1, [3, 4, 5])

now i add another SetPoint (with other parameters) to the class Foo:
void SetPoint(int i);

Now wrapping it and using it in ruby as shown before results in an
(Message: No matching function for overloaded 'Foo_SetPoint')

How can this be?
Are there any known workarounds?

ps: it don't want to change the c++ class
This topic is locked and can not be replied to.