standards-proposals icon indicating copy to clipboard operation
standards-proposals copied to clipboard

Casting multi_ptr pointers

Open ProGTX opened this issue 6 years ago • 1 comments
trafficstars

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.

ProGTX avatar Dec 19 '18 13:12 ProGTX

I've removed the const and void changes which have been merged into SYCL-1.2.1 as errata.

ProGTX avatar Sep 21 '19 08:09 ProGTX