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 » Developing U++ » U++ Developers corner » AsyncWork and pick/std::move problems...
Re: AsyncWork and pick/std::move problems... [message #60835 is a reply to message #60833] Wed, 18 September 2024 15:41 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
Ah, ultimately figured it out....

	void  Do(Function&& f, Args&&... args) {
		CoWork().Do([f, a = std::make_tuple(std::forward<Args>(args) ...)]() mutable {
			return std::apply([f](auto&& ... as){ f(std::forward<Args>(as)...); }, std::move(a));
		});
	}
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: reference SqlArray is broken ...
Next Topic: styling of widgets ( animation / look and feel)
Goto Forum:
  


Current Time: Wed Jun 18 09:16:14 CEST 2025

Total time taken to generate the page: 0.07938 seconds