File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
sycl/include/CL/sycl/ONEAPI Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1647,23 +1647,25 @@ inline constexpr AccumulatorT known_identity_v =
1647
1647
// Currently, the type traits defined below correspond to SYCL 1.2.1 ONEAPI
1648
1648
// reduction extension. That may be changed later when SYCL 2020 reductions
1649
1649
// are implemented.
1650
- #if SYCL_LANGUAGE_VERSION >= 202001
1651
1650
template <typename BinaryOperation, typename AccumulatorT>
1652
1651
struct has_known_identity
1653
1652
: ONEAPI::has_known_identity<BinaryOperation, AccumulatorT> {};
1654
1653
1654
+ #if __cplusplus >= 201703L
1655
1655
template <typename BinaryOperation, typename AccumulatorT>
1656
1656
inline constexpr bool has_known_identity_v =
1657
1657
has_known_identity<BinaryOperation, AccumulatorT>::value;
1658
+ #endif
1658
1659
1659
1660
template <typename BinaryOperation, typename AccumulatorT>
1660
1661
struct known_identity : ONEAPI::known_identity<BinaryOperation, AccumulatorT> {
1661
1662
};
1662
1663
1664
+ #if __cplusplus >= 201703L
1663
1665
template <typename BinaryOperation, typename AccumulatorT>
1664
1666
inline constexpr AccumulatorT known_identity_v =
1665
1667
known_identity<BinaryOperation, AccumulatorT>::value;
1666
- #endif // SYCL_LANGUAGE_VERSION >= 202001
1668
+ #endif
1667
1669
1668
1670
} // namespace sycl
1669
1671
} // __SYCL_INLINE_NAMESPACE(cl)
You can’t perform that action at this time.
0 commit comments