
19 May
2008
19 May
'08
3:22 p.m.
Anthony Williams wrote:
"Dean Michael Berris" <mikhailberis@gmail.com> writes:
Right now, having futures non-default constructable makes it hard(er) to put them in standard containers.
The futures in my proposal can be default-constructed. unique_future requires a move-aware container, but shared_future should be usable in any container.
Anthony
Just to add a little bit more information. When move semantics emulation are unified, Interprocess containers (their default allocator is std::allocator<T>) could be used to store unique futures. This would include map/set, family flat_map/set family, list, vector and deque. boost::unordered_map would also be compatible with non-copyable types. Regards, Ion