Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Callback (THISBACK) Improve
Re: Callback (THISBACK) Improve [message #30302 is a reply to message #30273] Wed, 22 December 2010 21:56 Go to previous messageGo to previous message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

kohait00 wrote on Tue, 21 December 2010 16:45

i'm still wondering about those templated return type callbacks that exist..do they have any practical usage besides making arbitrary methods (at least up to Callback1) usable for Callback api? i mean, having a int MyClass::DoSth() is not able to be set as a callback target otherwise..

does anyone have some experience with it?

it'd be great to specify this where needed, maybe sth like
Callback cb = THISBACK(IgnoreReturn(MyMethod));


It is possible. I can give an example and a little change in callback to make it easy to use.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Core regression between svn 6693 -> 6697
Next Topic: Code for Substrating Months And Years function In Date Class
Goto Forum:
  


Current Time: Sat May 11 21:56:40 CEST 2024

Total time taken to generate the page: 0.01920 seconds