swig/Examples/test-suite/constant_expr.i
Olly Betts ccd313ac64 Move new testcase which needs C++11
I don't see how to easily write this without constexpr.
2022-01-26 13:25:36 +13:00

17 lines
289 B
OpenEdge ABL

%module constant_expr;
/* Tests of constant expressions (C++ version). */
%include "constant_expr_c.i"
%inline %{
// Testcase from https://sourceforge.net/p/swig/bugs/1139/
template<typename Tp>
struct SizeInfo {
enum {
isLarge = (sizeof(Tp)>sizeof(void*)),
isPointer = false
};
};
%}