[patch] : Adding move symantics to vector

chris jefferson caj@cs.york.ac.uk
Thu Sep 8 22:26:00 GMT 2005


Paolo Carlini wrote:

>Paolo Carlini wrote:
>
>  
>
>>Chris, I have just noticed that (with or without the last patch) the
>>sort.cc performance testcase doesn't build (see attachment). Can you
>>spot something obviously wrong? Otherwise I'm going to look into the
>>issue...
>> 
>>
>>    
>>
>Never mind, my fault: I forgot to change the rename the static member of
>__is_moveable<int_wrap> to __value ;)
>
>  
>
However, this has thrown up another bug...

My first thought was "I bet it's that damn vector<bool> again". While it
isn't, I have discovered that all the "move semanticed" algorithms now
don't work with vector<bool>s. Of course, as discussed previously they
don't have to, but also it would be nice if they did. I'll have a ponder :)

Notice there is no problem with either vector<bool>s themselves, or
vectors of vector<bool>s.

Chris



More information about the Libstdc++ mailing list