c++ Programming Glossary: action..
How to write a wrapper over functions and member functions that executes some code before and after the wrapped function? http://stackoverflow.com/questions/2135457/how-to-write-a-wrapper-over-functions-and-member-functions-that-executes-some-co ScopePreAndPostActions test_stream Before action... std endl ~ScopePreAndPostActions test_stream After action..... std endl ~ScopePreAndPostActions test_stream After action... std endl template class FuncType_ struct FuncWrapper You can.. ' self.assertEqual GetValueAndClearTestStream ' Before action... n' ' In func a 69 b 1.618 n' ' After action... n' def testWrappedMemberFunction..
|