/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/test-suite/errors/cpp_template_missing_base.i
35 строк
580 B
William S Fulton
Correctly report line numbering for warnings/errors for base classes that are templates
03 фев 2024, 17:27
03 фев 2024, 17:27
8e86058
Код
Авторство
О чём код?
%module xx struct Low : High { }; struct Small; struct Big : Small { }; %inline %{ namespace A { class XYZ {}; template<typename T> struct ABC : public B::ABC<T> { }; } namespace B { template<typename T> struct ABC { void aaa(T t) {} }; } %} %template(ABCXYZ) A::ABC<A::XYZ>; %template() B::ABC<int>; %template(ABCint) A::ABC<int>; template<typename T> struct Another : WrongOrderBase<int> { }; %template(AnotherBool) Another<bool>; template<typename T> class WrongOrderBase {}; %template(ForAnotherInt) WrongOrderBase<int>;