FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[SYCLomatic] null_type by danhoeflinger · Pull Request #528 · oneapi-src/SYCLomatic · GitHub

[SYCLomatic] null_type - #528

Merged
zhimingwang36 merged 1 commit into
oneapi-src:SYCLomaticfrom
danhoeflinger:dev/dhoeflin/null_type
Feb 16, 2023
Merged

[SYCLomatic] null_type#528
zhimingwang36 merged 1 commit into
oneapi-src:SYCLomaticfrom
danhoeflinger:dev/dhoeflin/null_type

Conversation

danhoeflinger commented Jan 30, 2023
edited
Loading

Copy link
Copy Markdown
Contributor

Implementation for dpct::null_type for to indicate the lack of argument.

Signed-off-by: Dan Hoeflinger <dan.hoeflinger@intel.com>
danhoeflinger requested a review from a team as a code owner January 30, 2023 18:13

namespace dpct {

struct null_type {};

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

this PR doesn't show the use of null_type{}. So not sure how it is used and why it is necessary to add null_type.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I've just added a new PR into SYCLomatic-test which shows the intended usage of dpct::null_type.

oneapi-src/SYCLomatic-test#219

It will also likely be used in future dpct helper header APIs to a similar effect.

danhoeflinger changed the title [SYCLomatic] [DPCT] null_type [SYCLomatic] null_type Feb 16, 2023

zhimingwang36 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM

zhimingwang36 merged commit 8247d8e into oneapi-src:SYCLomatic Feb 16, 2023
ShengchenJ pushed a commit to ShengchenJ/SYCLomatic that referenced this pull request Sep 27, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL