Hello,
Here my problem:
I was wondering if it was possible to have the macro __LINE__ as a default value? Because of the template, I cannot use a simple macro for that. So I was wondering if there was a work around? I've tryed many things, but in vain :(
Here my problem:
- Code:
template<class T>
void Fct(int i)
{
std::cout << i << std::endl;
}
// ...
Fct<int>(__LINE__); // <-- This line
// ...
I was wondering if it was possible to have the macro __LINE__ as a default value? Because of the template, I cannot use a simple macro for that. So I was wondering if there was a work around? I've tryed many things, but in vain :(