[PATCH] D41372: [libcxx] Fix transform_reduce mishandling move-only types, and nonstandard macro use in tests.

Billy Robert O'Neal III via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 18 17:55:57 PST 2017


BillyONeal added inline comments.


================
Comment at: include/numeric:245
     for (; __first1 != __last1; ++__first1, (void) ++__first2)
         __init = __b1(__init, __b2(*__first1, *__first2));
     return __init;
----------------
It's arguable that this should be _VSTD::move(__init); I asked SG1 / LEWG about that. (After all, if they're going to make inner_product do that this should too)


Repository:
  rL LLVM

https://reviews.llvm.org/D41372





More information about the cfe-commits mailing list