I wanted to create a simple class which would act as a manipulator to log staff when flag is set and not log when it is reset. To do this I tried creating
a class and then using the function of the class as a manipulator.
Since the << takes stand alone function, I have no clue how I can achieve
this. Previous posts on this use a functor but I doubt this will help in
my case.