Deriving from CDumpContext and << o
Hi. My project needs a way to be able to dump information to a dialog (inside a multiline edit box or something similar), as well as to a file. I've already implemented Dump method in all my entities and so i figured that in order to achive the above i could derive a class from CDumpContext - implement the << operator - which will stream the data into the edit box (or the file) - and in this way i don't need to deal with each entity apart. Implementing the above i got into a problem : In my Dump method i expect a CDumpContext refrence - and i'm passing refrence to a derived class of it - so when trying to use insertion operator, <<, CDumpContexts version gets called instead of the derived classes. Any ideas, workaround ?