-
Notifications
You must be signed in to change notification settings - Fork 16
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
New system requires class as part of the type #4
Comments
I have to agree with this, the fact that the type of the caller appears in the type of the delegate seems to defeat the whole purpose of the delegate... If I say, for example
then
does not compile. |
+1, bitten with this. |
@marcmo Wouldn't C++17's template argument deduction help overcome this ? |
you are of course right guys...I overlooked this in my enthusiasm to get rid of some template syntax by using macros... |
just noticed this as well, any plans on maybe providing a working branch or tag a certain commit in which it was working as described in this issue? |
Hi @koemeet, I will provide an updated version soon. totally forgot about it. |
Hi @marcmo! Was this issue dropped or do you still have plans to update the class? |
I am not sure if this was intentional but the new implementation requires that the type of the class be part of the template type for member functions. This was not the case with the previous implementation. In other words, the type of a delegate now restricts it for use on a certain type.
I would assume that this is not part of the plan because if this is allowable then the concept of this delegate system does not make it any more useful than standard C++ member function pointers. Or am I missing something?
The text was updated successfully, but these errors were encountered: