Hey! check out the following example.. its almost a copy paste from some cpp book. i can't understand why is doesn't compile (under windows). it says:
'<<' : no operator found which takes a right-hand operand of type 'div_t' (or there is no acceptable conversion)
this is the example:
#include <iostream>
template <class T>
T div(T a, T b) {
T result = a/b;
return result;
}
int main() {
int a = 5;
int b = 3;
std::cout << "INT " << div(a,b) << std::endl; //this line output the error
return 0;
}
thanks!!