<div class="gmail_quote">On Thu, Apr 12, 2012 at 4:26 PM, John M. Dlugosz <span dir="ltr">&lt;<a href="mailto:mpbecey7gu@snkmail.com">mpbecey7gu@snkmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
In my earlier note, I figured it should just work.  But it&#39;s not.<br>
I think it might be different on Boost 1.47?<br>
<br>
<br>
Can anyone give me a VERY QUICK answer on how to return a unique_future on a compiler without &amp;&amp; using Boost 1.47?<br></blockquote><div><br>compiler?<br> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">


Thanks!<br>
—John<br>
<br>
<br>
In file included from /Volumes/VSee_Source/svnTree/<u></u>Trunk/stable/Testing/<u></u>UnitTests/Tools/<u></u>threadpoolTest.cpp:2:<br>
<br>
⋯: error: calling a private constructor of class &#39;boost::unique_future&lt;int&gt;&#39;<br>
<br>
 return future_result;  // built-in mover via implicit conversions<br></blockquote><div><br>Try<br><br>return boost::move(future_result);<br> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

<br>
        ^<br>
<br>
/⋯lTest.cpp:61:30: note: in instantiation of function template specialization &#39;vst::async&lt;int (*)()&gt;&#39; requested here<br>
<br>
        vst::unique_future&lt;int&gt; fi= vst::async (&amp;calculate_the_answer_to_<u></u>life_the_universe_and_<u></u>everything);<br>
<br>
                                    ^<br>
<br>
/opt/local/include/boost/<u></u>thread/future.hpp:619:9: note: implicitly declared private here<br>
<br>
        unique_future(unique_future &amp; rhs);// = delete;<br>
<br>
        ^<br></blockquote><div><br>- Jeff<br><br></div></div>

