blob: 8d8af795b0b9118b0b2c48777140f8c696bcf288 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
template_typedef
d = make_Identity_float();
c = make_Identity_reald();
try
a = swig_this(d);
a = swig_this(c);
catch
error
end_try_catch
try
e = make_Multiplies_float_float_float_float(d, d);
a = swig_this(e);
catch
e
error("is not an instance")
end_try_catch
try
f = make_Multiplies_reald_reald_reald_reald(c, c);
a = swig_this(f);
catch
f
error("is not an instance");
end_try_catch
try
g = make_Multiplies_float_float_reald_reald(d, c);
a = swig_this(g);
catch
error(g, "is not an instance")
end_try_catch
# the old large format
if (strcmp("<unknown>",swig_typequery("vfncs::ArithUnaryFunction<vfncs::arith_traits<float,double>::argument_type,vfncs::arith_traits<float,double >::result_type > *")))
error
endif
# the reduced format
if (strcmp("<unknown>",swig_typequery("vfncs::ArithUnaryFunction<double,double> *")))
error
endif
# this is a bad name
if (!strcmp("<unknown>",swig_typequery("vfncs::ArithUnaryFunction<double,doublex> *")))
error
endif
|