
19 Feb
2009
19 Feb
'09
12:17 a.m.
I think the doc_file_descriptor example should show how to create an object directly in the vector<file_descriptor> using emplace functions, as boost::move can't detect true rvalues as in c+0x. boost::interprocess::vector<file_descriptor> v; v.push_back(file_descriptor("filename")); // <- Fails v.emplace_back(""); // <- Works, of course Anyways, the move-emulation you submitted is immediately useful (together with the updated container library). I wish I had this years ago Best regards, Christian