Hello,
I'm trying to do aspect-oriented programming in C++ and found this library which is almost up to speed to do it (but not quite). The documentation is rather incomplete (with respect to AOP at least) but the relevant code itself seems pretty complete (although I can't quite figure out how to use it for AOP :)).
http://www.cdiggins.com/bil.html
Does anyone here have experience with the BIL and/or AOP in C++? The specific problem I'm having is using an 'interface' as a 'pointcut'. The docs seem to indicate that an interface is a pointcut, but when I try substituting it in as the 'aspect' class' pointcut_type, I get this error:
1>c:\expedia\ems\ads\lib\boost\boost_1_37\boost\interfaces\crosscut.hpp(59) : error C2039: 'generator' : is not a member of 'Ic'
1> c:\expedia\ems\devs\v-jleonard\aspect_test\aspect_test\aspect_test.cpp(12) : see declaration of 'Ic'
1> c:\expedia\ems\ads\lib\boost\boost_1_37\boost\mpl\aux_\preprocessed\plain\apply_wrap.hpp(39) : see reference to class template instantiation 'boost::interfaces::detail::crosscut_impl<Aspects>::generator_impl
participants (1)
-
Jonathan Leonard