forked from kokkos/kokkos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding converting constructor in Kokkos::RandomAccessIterator (kokkos…
…#6929) * Adding converting constructor in Kokkos::RandomAccessIterator * fix constructible tests for Kokkos::RandomAccessIterator * fix converting constructor in Kokkos::RandomAccessIterator * Add comments to explain friend class of RandomAccessIterator is needed for converting constructor * Introduce KOKKOS_IMPL_CONDITIONAL_EXPLICIT macro from kokkos#6830 * Adding a conditional explicit in converting constructor of RandomAccessIterator * Rename ViewType to OtherViewType in converting constructor for readability * Replace tests with static_assert if they rely on compile time behaviour only * fix a condition for conditional explicit * Revert "Introduce KOKKOS_IMPL_CONDITIONAL_EXPLICIT macro from kokkos#6830" This reverts commit ee42c6d. * On second thought `KOKKOS_IMPL_CONDITIONAL_EXPLICIT` is not such a good idea because it let user write code that would compile with C++17 but not with later standards. --------- Co-authored-by: Yuuichi Asahi <yuuichi.asahi@cea.fr>
- Loading branch information
1 parent
8c7cc95
commit a8115e5
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters