Original Post
I'm looking for an elegant way to force all methods of a class to execute some other function before executing (if anyone's used Ruby on Rails, something like before and after filters for actions). Of course, this is C++ so I might have to just explicitly call the function at the top of each new method, but I'd like to get around that if possible. Does anyone know of any libraries that allow for that sort of thing? Maybe some of the boost function libraries? I don't know alot about boost, but it seems to do almost everything. :-)