-
November 8th, 2013, 12:52 PM
#32
Re: [RESOLVED] template for events
Originally Posted by Cambalinho
events a();
a={ cout << "hello world";};
(in other place we can change what a do)
Have you considered making "a" a function object (functor), and not just a plain function? A function object would encapsulate any behaviour you want, including changing .
Regards,
Paul McKenzie
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|