using template with delegate #718
Answered
by
skypjack
teathinker
asked this question in
Q&A
-
Hi, thanks for the excelent framework. I have a question regarding using template with delegate. Following code gives me a compile error like: invalid operands of types ... to binary ‘operator<’. Any idea how to do it? Thanks.
|
Beta Was this translation helpful? Give feedback.
Answered by
skypjack
Jun 23, 2021
Replies: 1 comment 1 reply
-
It would help if you could provide a snippet to reproduce the error. delegate1.template connect<&T::myfun>(t); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
teathinker
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would help if you could provide a snippet to reproduce the error.
Otherwise, I can only guess and in this case I'd say that the error is due to a missing
template
:delegate1.template connect<&T::myfun>(t);