I am creating a wrapper class around std::ofstream
. I have override all the std::ofstream
methods. Now, I need to override the std::endl
method to use the wrapper class instead of basic_ostream
.
Is it possible to override std::endl
method? Can anyone give me an example?