基于C++的AOP解决方案:
AspectC++ (http://www.aspectc.org/) is an aspect-oriented extension to the C++ programming language.
FeatureC++ (http://wwwiti.cs.uni-magdeburg.de/iti_db/fcc/) supports feature-oriented and aspect-oriented programming in C++. The highlight of FeatureC++ is the combination of FOP and AOP concepts.
XWeaver (http://xweaver.sf.net/) is an extensible, customizable and minimally intrusive aspect weaver for C/C++ — it generates source code which differs as little as possible from the base code (preserves layout and comments).