I\'m trying to write a stream manipulator with arguments.
I have class with 3 int\'s CDate(Year, Month, Day).
So I need to make manipulator date_format(const char*)
Manipulators with arguments don't work the same as those without arguments! The are just classes with a suitable output operator which instead of outputting a value manipulate the stream's state. To manipulate the stream state you'll probably set up a suitabe value stored with an iword()
or a pword()
associated with the dtream and used by the output operator.