Subject: Re: [boost] [move] Library uploaded to sandbox
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2009-02-19 01:05:23


Mathias Gaunard wrote:
> Christian Holmquist wrote :
>> 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
>
> Why does it fail?
> I thought rvalues were properly detected.

That's one of the limitations of the library if you catch by reference.
The library is not so pretty...

Ion