Added (then fixed) templates with multiple parameters for both classes and functions!

This commit is contained in:
Nathan Braswell
2014-06-17 00:10:57 -07:00
parent e7a631240f
commit 82d8a15de0
10 changed files with 117 additions and 36 deletions

View File

@@ -0,0 +1,13 @@
import io;
template <T,J> void addAndPrint(T a, J b) {
print(a+b);
}
int main() {
addAndPrint<int,float>(10,12.14159);
print("\n");
return 0;
}