|
-
July 7th, 2011, 04:44 AM
#6
Re: C++0x thread and std::future
 Originally Posted by clros
Why?
Your function takes a promise by value, but promise is not copyable. Pass by reference or r-value reference instead.
(It is possible to disable the smiles?)
Use code tags or tick the 'disable smilies in text' checkbox (but use code tags for posting code, because it also preserves indentation).
Cheers, D Drmmr
Please put [code][/code] tags around your code to preserve indentation and make it more readable.
As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|