This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [v3] parallel mode



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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]