/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/test-suite/r_overload_array.i
18 строк
428 B
Julien Schueller
Fix -Wextra-semi warnings (#3372)
18 мар 2026, 21:53
Не верифицирован
18 мар 2026, 21:53
84ff343
Код
Авторство
О чём код?
%module r_overload_array %include <stl.i> // this tests the situation in which there is a scalar function // corresponding with a vector one %inline %{ class Foo { public: double bar(double w) {return w;} double bar(double *w) {return w[0];} double bar(std::vector<double> w) {return w[0];} int bar_int(int w) {return w;} int bar_int(int *w) {return w[0];} int bar_int(std::vector<int> w) {return w[0];} }; %}