I think you'll need RunTime Type Identification (RTTI) for that purpose ...
tux4life
Nearly a Posting Maven
2,350 posts since Feb 2009
Reputation Points: 2,134
Solved Threads: 243
And what's the result ?
Did it work ?
tux4life
Nearly a Posting Maven
2,350 posts since Feb 2009
Reputation Points: 2,134
Solved Threads: 243
Did you try searching google (e.g: typeid , c++ rtti )?
tux4life
Nearly a Posting Maven
2,350 posts since Feb 2009
Reputation Points: 2,134
Solved Threads: 243
Why are you using two separate functions read and write then ?
tux4life
Nearly a Posting Maven
2,350 posts since Feb 2009
Reputation Points: 2,134
Solved Threads: 243
Because one reads and one writes? Hahahaha
Of course :), but I asked why youSEPERATED these from your function, why not implement them directly in your function ?
tux4life
Nearly a Posting Maven
2,350 posts since Feb 2009
Reputation Points: 2,134
Solved Threads: 243