diff options
| author | Billy Robert O'Neal III <bion@microsoft.com> | 2018-01-05 01:31:57 +0000 |
|---|---|---|
| committer | Billy Robert O'Neal III <bion@microsoft.com> | 2018-01-05 01:31:57 +0000 |
| commit | 4958692ad9d0834b6ba94dbeaffc88e5159debeb (patch) | |
| tree | 53c0960e3eb32ebfad84d0cf75950806c4b7c498 /libcxx/include/numeric | |
| parent | ca444e13dc088920d88fa2dfd67a6d5bdc6386aa (diff) | |
| download | bcm5719-llvm-4958692ad9d0834b6ba94dbeaffc88e5159debeb.tar.gz bcm5719-llvm-4958692ad9d0834b6ba94dbeaffc88e5159debeb.zip | |
Fix incorrect handling of move-only types in transform_reduce iter iter iter init, and add test.
llvm-svn: 321851
Diffstat (limited to 'libcxx/include/numeric')
| -rw-r--r-- | libcxx/include/numeric | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/numeric b/libcxx/include/numeric index 0197a28d8ca..b33b6a398eb 100644 --- a/libcxx/include/numeric +++ b/libcxx/include/numeric @@ -252,7 +252,7 @@ _Tp transform_reduce(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _Tp __init) { - return _VSTD::transform_reduce(__first1, __last1, __first2, __init, + return _VSTD::transform_reduce(__first1, __last1, __first2, _VSTD::move(__init), _VSTD::plus<>(), _VSTD::multiplies<>()); } #endif |

