Re: [PATCH][libstdc++-v3 parallel mode] Avoid taking address of dereferenced random access iterator

2011-03-10 Thread Johannes Singler
On 03/10/2011 11:37 AM, Jonathan Wakely wrote: On 10 March 2011 09:47, Johannes Singler wrote: The attached patch patch solves a conformance problem of the parallel mode helper routine multiseq_partition. I have added a test case for that. multiseq_selection has similar problems, but is

[PATCH][libstdc++-v3 parallel mode] Avoid taking address of dereferenced random access iterator

2011-03-10 Thread Johannes Singler
). Should I use unique_ptr (or alloca, or something similar) here for a better exception safety (this routine is not parallel itself)? Is it the appropriate place for the "unit test"? It is used in the parallel sort. Tested x86_64-unknown-linux-gnu: No regressions 2011-03-10