Closed Quuxplusone closed 9 years ago
Attached openmpCmpOp.cc
(1522 bytes, application/octet-stream): Test canonical loop with custom random access iterators
Committed revision 242285.
Shouldn't the fix from r242285 also go into 3.7.0 branch?
It there a reason why the copy constructor cannot have default arguments? e.g.:
It(const It &o, int = 0) noexcept : p(o.p) {}
It(It &&o, int = 0) noexcept : p(o.p) {}
or why the copy cannot be done by a converting template constructor? e.g.:
template <typename U> It(U &&o) noexcept : p(o.p) {}
It(const It &) noexcept = default;
It(It &&) noexcept = default;
> It there a reason why the copy constructor cannot have default arguments?
e.g.:
> It(const It &o, int = 0) noexcept : p(o.p) {}
> It(It &&o, int = 0) noexcept : p(o.p) {}
>
> or why the copy cannot be done by a converting template constructor? e.g.:
> template <typename U> It(U &&o) noexcept : p(o.p) {}
> It(const It &) noexcept = default;
> It(It &&) noexcept = default;
Fixed in revision 242382.
openmpCmpOp.cc
(1522 bytes, application/octet-stream)