Skip to content

Commit

Permalink
[SYCLomatic] add null_type implementation (#528)
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Hoeflinger <[email protected]>
  • Loading branch information
danhoeflinger authored Feb 16, 2023
1 parent 25b9dc7 commit 8247d8e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions clang/runtime/dpct-rt/include/dpl_extras/functional.h.inc
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@

namespace dpct {

// DPCT_LABEL_BEGIN|null_type|dpct
// DPCT_DEPENDENCY_EMPTY
// DPCT_CODE
struct null_type {};
// DPCT_LABEL_END

namespace internal {

// DPCT_LABEL_BEGIN|enable_if_execution_policy|dpct::internal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

namespace dpct {

struct null_type {};

namespace internal {

template <class _ExecPolicy, class _T>
Expand Down

0 comments on commit 8247d8e

Please sign in to comment.