/
niceSOFT
/
swig
Обзор
Документация
Войти
/
niceSOFT
/
swig
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
Examples/test-suite/java/cpp20_variable_templates_runme.java
21 строка
701 B
William S Fulton
C++20: parse a requires-expression as a primary in expression position
10 май 2026, 19:37
10 май 2026, 19:37
c2de37f
Код
Авторство
О чём код?
import cpp20_variable_templates.*; public class cpp20_variable_templates_runme { static { try { System.loadLibrary("cpp20_variable_templates"); } catch (UnsatisfiedLinkError e) { System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e); System.exit(1); } } public static void main(String argv[]) { // int satisfies 't + t', NotAddable doesn't. if (!cpp20_variable_templates.getAddable_int()) throw new RuntimeException("addable_int"); if (cpp20_variable_templates.getAddable_notaddable()) throw new RuntimeException("addable_notaddable"); } }