From b6e5387fca257578a99caf6c523a680fb1a5ca28 Mon Sep 17 00:00:00 2001 From: Dan Hoeflinger Date: Mon, 4 Mar 2024 10:16:06 -0500 Subject: [PATCH] transform_iterator constructor changes Signed-off-by: Dan Hoeflinger --- include/oneapi/dpl/pstl/iterator_impl.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/include/oneapi/dpl/pstl/iterator_impl.h b/include/oneapi/dpl/pstl/iterator_impl.h index 35e1afae59d..bd2564fda75 100644 --- a/include/oneapi/dpl/pstl/iterator_impl.h +++ b/include/oneapi/dpl/pstl/iterator_impl.h @@ -410,10 +410,12 @@ class transform_iterator typedef typename ::std::iterator_traits<_Iter>::pointer pointer; typedef typename ::std::iterator_traits<_Iter>::iterator_category iterator_category; - transform_iterator(_Iter __it = _Iter(), _UnaryFunc __unary_func = _UnaryFunc()) - : __my_it_(__it), __my_unary_func_(__unary_func) - { - } + transform_iterator() : __my_it_(), __my_unary_func_() {} + + transform_iterator(_Iter __it) : __my_it_(__it), __my_unary_func_() {} + + transform_iterator(_Iter __it, _UnaryFunc __unary_func) : __my_it_(__it), __my_unary_func_(__unary_func) {} + transform_iterator(const transform_iterator& __input) = default; transform_iterator& operator=(const transform_iterator& __input)