diff --git a/include/alpaka/mem/Visibility.hpp b/include/alpaka/mem/Visibility.hpp index e326ad56d24..db32232f42b 100644 --- a/include/alpaka/mem/Visibility.hpp +++ b/include/alpaka/mem/Visibility.hpp @@ -96,11 +96,12 @@ namespace alpaka return getMemVisiblityName(); } - template - // , - // typename = std::enable_if_t< - // (alpaka::isPlatform> || alpaka::isDevice> - // || alpaka::isAccelerator>) &&alpaka::internal::isView>>> + template< + typename T, + typename TBuf, + typename = std::enable_if_t< + (alpaka::isPlatform> || alpaka::isDevice> + || alpaka::isAccelerator>) &&alpaka::internal::isView>>> inline constexpr bool hasSameMemView() { if constexpr(alpaka::isDevice> || alpaka::isAccelerator>) @@ -110,12 +111,12 @@ namespace alpaka typename alpaka::trait::MemVisibility::type, typename alpaka::trait::MemVisibility::type>::value; } - else - { - return alpaka::meta::Contains< - typename alpaka::trait::MemVisibility::type, - typename alpaka::trait::MemVisibility::type>::value; - } + + return alpaka::meta::Contains< + typename alpaka::trait::MemVisibility::type, + typename alpaka::trait::MemVisibility::type>::value; + + // ALPAKA_UNREACHABLE({}); } template