/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/test-suite/cpp11_sizeof_object.i
17 строк
315 B
William S Fulton
Rename all C++0x to C++11 and cpp0x to cpp11
07 окт 2013, 23:37
07 окт 2013, 23:37
738cc36
Код
Авторство
О чём код?
/* This testcase checks whether SWIG correctly uses the sizeof() on the concrete objects and not only types introduced in C++11. */ %module cpp11_sizeof_object %inline %{ struct B { unsigned long member1; long long member2; char member3; }; struct A { B member; }; const int a = sizeof(A::member); %}