kokkos / mdarray

Other
10 stars 9 forks source link

P1684: Make converting construction from mdspan/mdarray unconditionally explicit #21

Open mhoemmen opened 2 years ago

mhoemmen commented 2 years ago

This comes from 1684R2 LEWG review on 2022/04/19.

One reviewer pointed out: string(string_view) constructor is unconditionally explicit, because it may require an expensive allocation and/or copy. Analogously, converting construction of an mdarray from mdarray or mdspan should also be unconditionally explicit.

crtrott commented 2 years ago

But queue(Iterator begin, Iterator end) is not explicit either.