Last edited on
No it's not possible. sizeof is an operator and not a function.
No, that's what templates are for:
1 2 3
|
func<int>();
func<double>();
//etc
|
sizeof isn't a function, it's like return, just a keyword.
sizeof int;
is the same as
sizeof(int);
Last edited on
Thank for your replies, Peter87 and firedraco !!!