Quantcast
Channel: WE MOVED to github.com/microsoft/cpprestsdk. This site is not monitored!
Viewing all articles
Browse latest Browse all 4845

New Post: Move bug in task creation?

$
0
0
Unfortunately this is tied to the behavior inside the underlying "Parallel Patterns Library" implementation. Calling .get() on a task will return a copy of the object, making it safe to chain multiple continuations off of the same task as they cannot interact with each other.

This feature, however, means that non-copiable objects can't be used in tasks.

Most types inside cpprest use shared_ptr semantics to make their use easier: they're movable, copiable, and you don't have to worry about them being destroyed before completing.

Viewing all articles
Browse latest Browse all 4845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>