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 » AsyncWork<Vector<T>> fails due to lack of copy-constructor
Re: AsyncWork<Vector<T>> fails due to lack of copy-constructor [message #52895 is a reply to message #52894] Mon, 06 January 2020 22:32 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
piotr5 wrote on Mon, 06 January 2020 15:38

or did I make a mistake and AsyncWork is not for this kind of usage?
should I rewrite my code to use Thread?


Well, I am not sure what your usage is, but yes, in general, I think using AsyncWork directly is probably not going to have intended effect.

That said, I think it should work with Vector.

Can you test this little change for me (I am too lazy to setup proper testing code now...):

template <class Ret>
class AsyncWork {
...
	const Ret&         Get()                               { ASSERT(imp); imp->co.Finish(); return imp->Get(); }


Can you eventually post here a complete testcase?

Mirek
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Bugfix AsGate64() works correctly on totals > 2^31
Next Topic: Problem linking using RegExp
Goto Forum:
  


Current Time: Fri Aug 22 11:10:34 CEST 2025

Total time taken to generate the page: 0.06482 seconds