/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/test-suite/smart_pointer_overload.i
23 строки
463 B
William S Fulton
Remove unused SWIG_NO_OVERLOAD macro from testcases
05 окт 2017, 01:49
05 окт 2017, 01:49
4f4147a
Код
Авторство
О чём код?
%module smart_pointer_overload #ifdef SWIGLUA // lua only has one numeric type, so some overloads shadow each other creating warnings %warnfilter(SWIGWARN_LANG_OVERLOAD_SHADOW) test; #endif %inline %{ struct Foo { int x; int test(int y) { y = 0; return 1; } int test(double y) { y = 0; return 2; } int test(char *s) { s = 0; return 3; } }; class Bar { Foo *f; public: Bar(Foo *f) : f(f) { } Foo *operator->() { return f; } }; %}