/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/test-suite/smart_pointer_protected.i
32 строки
395 B
Marcelo Matus
add virtual destructors where needed
11 апр 2004, 16:10
11 апр 2004, 16:10
f634079
Код
Авторство
О чём код?
%module smart_pointer_protected %inline %{ namespace hi { struct A { virtual ~A() { } virtual int value(A*) = 0; int index; }; struct B : A { protected: int value(A*) { return 1; } }; struct C { hi::B* operator->() const { return new hi::B(); } private: int index; }; } %}