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 is_scoped_enum & to_underlying (kokkos#6356)
* Added Impl::is_scoped_enum trait * Changed to_underlying from a KOKKOS_INLINE_FUNCTION to a KOKKOS_FUNCTION, as templated functions are automatically inlined. * Fixed formatting * Removed C++ compatible Kokkos::Impl::underlying_type * Added tests for is_scoped_enum applied to a user defined class * Check to see if is_scoped_enum is derived from std::bool_constant * Made a better check for being a public, unambiguous base
- Loading branch information
Showing
2 changed files
with
117 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