https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61075
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Denes Matetelki from comment #4) > I'm suprised that the same source code cannot be compiled with parallel > mode. It would be ugly to branch with #ifdef _GLIBCXX_PARALLEL. > Also, I feel it should be allowed for the user to create a custom labda to > add up custom types, just like in the single threaded mode. It is allowed, you just need to meet the additional requirement that Custom is convertible to int, for example add this member function: explicit operator int() const { return m_i; } N.B. the parallel mode is unlikely to see any new work or improvements. Instead we are more likely to focus on implementing the Paralellism TS (of which N3850 is the current draft).