F
Faisal
Hi,
Why C++ doesn't allow overloading of size of operator. I think it
would be much handy to check the type userdefined types.
For eg. In my project, I've some structures which contains dynamic
data( pointers). So if i have some way to overload the sizeof operator
I can calculate the exact size and return.
Why C++ doesn't allow overloading of size of operator. I think it
would be much handy to check the type userdefined types.
For eg. In my project, I've some structures which contains dynamic
data( pointers). So if i have some way to overload the sizeof operator
I can calculate the exact size and return.