Skip to content

Commit

Permalink
allow const queues and devices
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraPerego committed Jul 16, 2024
1 parent cde2341 commit 690324e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/alpaka/dev/Traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ namespace alpaka

//! True if TDev is a device, i.e. if it implements the ConceptDev concept.
template<typename TDev>
inline constexpr bool isDevice = concepts::ImplementsConcept<ConceptDev, TDev>::value;
inline constexpr bool isDevice = concepts::ImplementsConcept<ConceptDev, std::remove_cv_t<TDev>>::value;

//! \return The device this object is bound to.
template<typename T>
Expand Down
2 changes: 1 addition & 1 deletion include/alpaka/queue/Traits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace alpaka

//! True if TQueue is a queue, i.e. if it implements the ConceptQueue concept.
template<typename TQueue>
inline constexpr bool isQueue = concepts::ImplementsConcept<ConceptQueue, TQueue>::value;
inline constexpr bool isQueue = concepts::ImplementsConcept<ConceptQueue, std::remove_cv_t<TQueue>>::value;

//! The queue traits.
namespace trait
Expand Down

0 comments on commit 690324e

Please sign in to comment.