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 » Community » U++ community news and announcements » Callback: C++11 lambda support
Re: Callback: C++11 lambda support [message #42875 is a reply to message #42730] Sat, 12 April 2014 19:32 Go to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
After some intial experience, overloading problems proved to be too ugly, so putting lambda into Callback now requires call to "lambda" function or using LAMBDA macro:

Callback1<int> cb = lambda([&](int x) { something(x); });

Callback cb = LAMBDA(int x) { something(x); };
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Testing of migrated and upgraded forum
Next Topic: Development blog canceled, topics moved to "news"
Goto Forum:
  


Current Time: Sun Aug 24 07:29:33 CEST 2025

Total time taken to generate the page: 0.00696 seconds