[Tcl] Add changed file missed recent commit
This should have been in 6f4adde4b4
This commit is contained in:
parent
3e019977c5
commit
9d06d4ac45
1 changed files with 10 additions and 0 deletions
|
|
@ -140,3 +140,13 @@ std::vector<std::string> RevStringVec (const std::vector<std::string> &In)
|
||||||
return(result);
|
return(result);
|
||||||
}
|
}
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
// regression test for Tcl typecheck bug with empty list fixed in 4.2.0
|
||||||
|
%inline %{
|
||||||
|
int sum(const std::vector<int> &v) {
|
||||||
|
return std::accumulate(v.begin(),v.end(),0);
|
||||||
|
}
|
||||||
|
int sum(int v) {
|
||||||
|
return v;
|
||||||
|
}
|
||||||
|
%}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue