/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/test-suite/errors/cpp_template_repeat.i
18 строк
439 B
William S Fulton
Duplicate class template instantiations via %template changes
18 ноя 2022, 22:35
18 ноя 2022, 22:35
4729cf2
Код
Авторство
О чём код?
%module xxx template<class T> T blah(T x) { }; %template(iblah) blah<int>; %template(iiblah) blah<int>; // empty template instantiations for template functions warn (unlike for template classes) %template() blah<double>; %template() blah<double>; %template() blah<double>; %template(sblah) blah<short>; %template(sblah) blah<short>; %template() blah<const char *>; %template() blah<const char *>; %template(sblah) blah<const char *>;