Delegate with TMap working when it shouldn't.
I was having problems with declaring a delegate with a TMap as a parameter, kept getting that I had too many parameters in this declaration:
I was about to wrap the map in a struct, when I thought I'd see if just declaring it as a six parameter delegate would work at all. It did, not only that, but there don't seem to be any noticeable issues. Here's the declaration:
This seems incorrect... anyone know why it works?
asked May 15 '17 at 04:33 AM in C++ Programming
It works because of how the token expansion occurs inside the macro, but I would say it's not something you should learn to rely on. A better solution would be to typedef your type:
Hope this helps,
answered May 15 '17 at 03:08 PM
Steve Robb STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here