Skip to content

Commit

Permalink
make compile with msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandschulz committed May 16, 2024
1 parent 6062ae8 commit 016cf85
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sycl/include/sycl/ext/oneapi/properties/properties.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@ class properties<TL<V...>,
template <class P> static constexpr bool has_property() {
return detail::mp11::mp_map_contains<M, P>();
}
template <class P,
class = std::enable_if_t<detail::is_empty_or_incomplete_v<P>>>
static constexpr auto get_property() {
template <class P> static constexpr auto get_property(int = 0) {
using T = detail::mp11::mp_map_find<M, P>;
static_assert(!std::is_same_v<T, void>,
"Property list does not contain the requested property.");
Expand Down

0 comments on commit 016cf85

Please sign in to comment.