swig/Examples/test-suite/errors/cpp_template_concept.i

11 lines
205 B
OpenEdge ABL

%module xxx
%inline %{
#include <concepts>
template<typename T>
concept Numeric = std::integral<T>;
%}
// Concepts are not types and cannot be %template instantiated.
%template(NumericInt) Numeric<int>;