File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -454,7 +454,7 @@ std::string
454454FunctionWrapper::arg_decl (int iarg, bool argtypes_only) const {
455455 const auto & argtype = clang_getArgType (method_type, iarg);
456456 // const auto argtypename = fully_qualified_name(argtype); //str(clang_getTypeSpelling(argtype));
457- const auto argtypename = type_map_.mapped_typename (argtype);
457+ const auto argtypename = fix_template_type ( type_map_.mapped_typename (argtype) );
458458
459459 if (argtypes_only) return argtypename;
460460
Original file line number Diff line number Diff line change @@ -22,6 +22,10 @@ namespace ns{
2222
2323 void setval (const S& val){ a = val; }
2424
25+ typedef typename std::string String;
26+ int slen (const String& s) { return s.size (); }
27+
28+
2529 S a;
2630 };
2731
Original file line number Diff line number Diff line change @@ -14,12 +14,14 @@ function runtest()
1414 val = 3
1515 setval (a, val)
1616 @test getval (a) == val
17-
17+
1818 b = TestTemplate2. ns!B {Int32} ();
1919 @test getval (b) == 0
2020 val = 5
2121 setval (b, val)
2222 @test getval (b) == val
23+
24+ @test slen (b, " 123" ) == 3
2325 end
2426end
2527
You can’t perform that action at this time.
0 commit comments