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++ Callbacks and Timers » partial parametrizing of Callback<>
Re: partial parametrizing of Callback<> [message #27418 is a reply to message #27410] Fri, 16 July 2010 15:16 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

kohait00 wrote on Fri, 16 July 2010 07:06

i didnt know something like that was possible, found callback was strict enough concerning type checks.. well perfect. has this support for such semmi parametrized Callback arrived recently or already long time ago.

It is there as long as I remember Smile

The case with three parameters is not used that often, therefore there is no template for it. Also with increasing number of parameters, the complexity rises. For 3 parameter function, we should supply 2 functions (returning 1 and 2 parameter callback), for 4 parameter function 3 generating functions etc.

But you can "easily" (not to be taken too seriously Smile ) extend the templates yourself. I know you already looked into the internals of Callback, so it should not be that hard for you. Sorry for not supplying the actual code, but my head goes dizzy whenever I start thinking about templates with so many parameters - BTW: that is possibly one of the reasons why such complicated callbacks are not present in U++ by default Wink

Regards,
Honza
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Strange crash connected to Timer
Next Topic: PROPOSAL: delegate like separation of method and args in Callbacks
Goto Forum:
  


Current Time: Sat Apr 27 06:32:12 CEST 2024

Total time taken to generate the page: 0.02928 seconds