Traits for function templates working! Need to finish for objects and specilizations, and I think also else statements.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user