shared_future::get returns a reference to the object stored in the
shared state. shared_future::get() can be called multiple times and will
return the same reference every time.
Since it is a reference, not a value, it is possible for the reference
to outlive the shared state (e.g. by destroying all the futures
immediately after storing the reference in a local variable).
The note just makes it clear that such a dangling reference is undefined
behaviour (as dangling references always are), so don't do that.
Anthony
--
Author of C++ Concurrency in Action
http://www.stdthread.co.uk/book/
just::thread C++11 thread library
http://www.stdthread.co.uk
Just Software Solutions Ltd
http://www.justsoftwaresolutions.co.uk
15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK. Company No. 5478976