Skip to content

Conversation

@steffenlarsen
Copy link
Contributor

Due to std::string not being nothrow copy constructible, neither is sycl::exception. As a throw in the copy constructor when throwing an exception will cause a termination of the program, sycl::exception should never be able to throw. These changes make sycl::exception nothrow copy constructible by making its std::string member a shared pointer.

Due to std::string not being nothrow copy constructible, neither is
sycl::exception. As a throw in the copy constructor when throwing an
exception will cause a termination of the program, sycl::exception
should never be able to throw. These changes make sycl::exception
nothrow copy constructible by making its std::string member a shared
pointer.

Signed-off-by: Larsen, Steffen <[email protected]>
@steffenlarsen steffenlarsen requested a review from a team as a code owner August 11, 2022 19:57
@steffenlarsen steffenlarsen temporarily deployed to aws August 12, 2022 08:50 Inactive
@steffenlarsen steffenlarsen temporarily deployed to aws August 12, 2022 09:07 Inactive
@steffenlarsen steffenlarsen merged commit 289e33d into intel:sycl Aug 12, 2022
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