[v3] parallel mode

Chris Fairles chris.fairles@gmail.com
Wed Sep 12 14:05:00 GMT 2007



Benjamin Kosnik wrote:
> 
> This is now in. The final patch is as attached.
> 

Quick question:

-pedantic (well, -pedantic-errors actually) give's:
include/c++/4.3.0/parallel/partial_sum.h:107: error: ISO C++ forbids
variable length array ‘borders’

the offending line being:
difference_type borders[num_threads + 2];

Is this necessary? What side-effects would a vector cause? If, as a hack, I
changed it to vector<difference_type> borders(num_threads+2) and used
&(*borders.begin()) or something wherever the array is expected would it
cause big issues?

Cheers,
Chris


-- 
View this message in context: http://www.nabble.com/-v3--parallel-mode-tf4419183.html#a12636311
Sent from the gcc - libstdc++ mailing list archive at Nabble.com.



More information about the Libstdc++ mailing list