standards-proposals
standards-proposals copied to clipboard
Casting multi_ptr pointers
This PR proposes the addition of pointer casting functions to SYCL in order to simplify casting of the multi_ptr class.
It adds the following functions:
-
static_pointer_cast -
dynamic_pointer_cast -
const_pointer_cast -
reinterpret_pointer_cast
It also simplifies casting to a const variant of the multi_ptr, provides better handling of const qualifiers in general, and provides better handling of the void specialization.
I've removed the const and void changes which have been merged into SYCL-1.2.1 as errata.