/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/test-suite/python/cpp17_using_pack_alias_template_runme.py
15 строк
716 B
William S Fulton
Add test coverage and docs for alias templates as a base class and using-declaration qualifier
20 июн 2026, 09:20
20 июн 2026, 09:20
c0754fb
Код
Авторство
О чём код?
from cpp17_using_pack_alias_template import * from swig_test_utils import swig_check # Both overloads of g, inherited through the alias template base pack 'Identity<Ts>...' and re-exported # by the using-declaration pack 'using Identity<Ts>::g...;', are wrapped. o = OverAB() swig_check(o.g(), 1) # inherited from A through Identity<A> swig_check(o.g(7), 7) # inherited from B through Identity<B> # Both inherited constructors, brought in through the alias template base pack # 'using Identity<Ts>::Identity...;', are wrapped on the derived proxy. CtorWrapIS(5) # inherited CtorA(int) swig_check(last_ctor(), 105) CtorWrapIS(2, 3) # inherited CtorB(int, int) swig_check(last_ctor(), 205)