Skip to content

Conversation

@aelovikov-intel
Copy link
Contributor

SYCL 1.2 exception classes don't use context argument so it can be removed. online_compile_error was the single user of an overload, so I've removed it and change the ctor used by it.

SYCL 1.2 exception classes don't use `context` argument so it can be
removed. `online_compile_error` was the single user of an overload, so
I've removed it and change the ctor used by it.
@aelovikov-intel aelovikov-intel requested a review from a team as a code owner July 2, 2024 22:10
@aelovikov-intel aelovikov-intel requested a review from againull July 2, 2024 22:10
online_compile_error() = default;
online_compile_error(const std::string &Msg) : sycl::exception(Msg) {}
online_compile_error(const std::string &Msg)
: sycl::exception(make_error_code(errc::invalid), Msg) {}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

See line 126 in the previous file on why I used this.

Co-authored-by: Alexey Bader <alexey.bader@intel.com>
@aelovikov-intel aelovikov-intel merged commit a458595 into intel:sycl Jul 3, 2024
@aelovikov-intel aelovikov-intel deleted the remove-ctors branch July 3, 2024 22:57
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.

3 participants