I'm reading a pre-release of a book on C++0x threading. I'm using the boost::thread library since it's supposed to be pretty close. Now they're using std::vector<> though and I know it's not move ready. Is there a boost container I can mimic this with?
AMDG Noah Roberts wrote:
I'm reading a pre-release of a book on C++0x threading. I'm using the boost::thread library since it's supposed to be pretty close. Now they're using std::vector<> though and I know it's not move ready.
Is there a boost container I can mimic this with?
The containers in Boost.Interprocess support move, but unless your compiler supports rvalue references, its move emulation is incompatible with the move emulation used by Boost.Thread. Unified move emulation is a work in progress. In Christ, Steven Watanabe
Steven Watanabe wrote:
AMDG
Noah Roberts wrote:
I'm reading a pre-release of a book on C++0x threading. I'm using the boost::thread library since it's supposed to be pretty close. Now they're using std::vector<> though and I know it's not move ready.
Is there a boost container I can mimic this with?
The containers in Boost.Interprocess support move, but unless your compiler supports rvalue references, its move emulation is incompatible with the move emulation used by Boost.Thread. Unified move emulation is a work in progress.
Thanks. Yeah, my compiler doesn't support move.
participants (2)
-
Noah Roberts
-
Steven Watanabe