Quote Originally Posted by clros View Post
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).