Struggling to implement parallel foreach...

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Mon Jun 17 11:38:59 UTC 2019


On Monday, 17 June 2019 at 11:24:59 UTC, Nicholas Wilson wrote:
> On Monday, 17 June 2019 at 10:20:29 UTC, Ola Fosheim Grøstad
>> In C++ it is an add-on, isn't it?
>
> It's a standard library function.

Ah yes, in C++17 it is. I was thinking of OpenMP, but I guess the 
OMP pragma can be wrapped up in the std lib API now.

> There is also the issue that access through the (once its 
> fixed) qualified captured context, then cannot implicitly 
> convert to shared (as oppose to const since everything will 
> implicitly convert to const). This will be alleviated under the 
> new shared.

Thanks for the explanation. So my understanding is that this will 
all be fixed when the semantics of "shared" has been finally 
decided on?



More information about the Digitalmars-d mailing list