Stephen Torri
I would like to have a function object that I can use the return value of its operator() function.
Where is the point I should be catching return from the operator() function? I want the thread to do work and then have the opportunity to get some results from it. Is there a code example someone can show me?
boost::thread discards the return value from the thread function or function object. If you want the return value, you need to use something like the proposed Boost futures library. My implementation is here: http://www.justsoftwaresolutions.co.uk/threading/updated-implementation-of-c... Anthony -- Anthony Williams | Just Software Solutions Ltd Custom Software Development | http://www.justsoftwaresolutions.co.uk Registered in England, Company Number 5478976. Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL