Traits for function templates working! Need to finish for objects and specilizations, and I think also else statements.

This commit is contained in:
Nathan Braswell
2014-07-18 08:52:15 -07:00
parent 46b9fc8b7f
commit 64fcb6b0b7
14 changed files with 396 additions and 174 deletions

View File

@@ -6,7 +6,7 @@ template <T,J> void addAndPrint(T a, J b) {
int main() {
addAndPrint<int,float>(10,12.14159);
addAndPrint<int,double>(10,12.14159);
print("\n");
return 0;