/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/test-suite/smart_pointer_const2.i
18 строк
245 B
Dave Beazley
new test
16 мар 2003, 06:55
16 мар 2003, 06:55
3a75cd3
Код
Авторство
О чём код?
%module smart_pointer_const2 %inline %{ struct Foo { int x; int getx() const { return x; } int test() { return x; } }; class Bar { Foo *f; public: Bar(Foo *f) : f(f) { } const Foo *operator->() { return f; } }; %}