/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/test-suite/cpp11_null_pointer_constant.i
22 строки
472 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 treats the new nullptr_t constant introduced in C++11. */ %module cpp11_null_pointer_constant %feature("autodoc") A::NullPtrMethod; // Triggers conversion of nullptr to None, nil etc in target language %feature("compactdefaultargs") A::NullPtrMethod; %inline %{ const int *const MyIntegerPtr = nullptr; class A { public: A() : _myA(nullptr) { } A *_myA; void NullPtrMethod(double *ptr = nullptr) {} }; %}