I don't really need to modify it. I just want to check the data. So it can be defined as const pointer.
Are you sure that you don't want to "check the data" in a member/friend function?
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.