-
Notifications
You must be signed in to change notification settings - Fork 456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
面向切面编程中织入类成员函数并带参数 #30
Comments
你看一下feather是怎么织入切面的: |
自己实验,只能在织入的类函数传入参数,而切面函数无法获取这些参数。 |
问一下可不可以实现动态的注册一个模板类?大概想法是:现在存在一个类Obj obj1、一个类模板(即观察者模式里的Events模板),想要在obj实例调用一个函数实现对特定形式的events类的添加 |
没看懂你的问题。切面的参数和业务函数的参数是相同的,如果你想设置额外的参数,你可以在切面类里面加,然后再切面函数里自己去处理,这是灵活的。 |
问一下版主 Aspect.hpp
怎么织入类函数成员,带参数变量(切面函数before,after同样传入参数?)
The text was updated successfully, but these errors were encountered: