codeplaysoftware / standards-proposals

Repository for publicly sharing proposals in various standards groups
Apache License 2.0
27 stars 17 forks source link

Casting accessors #98

Open ProGTX opened 4 years ago

ProGTX commented 4 years ago
  1. Implicit conversion to const dataT
  2. Type traits for const conversions
    • For resolving access modes
  3. Free functions for casting accessors
    • static_pointer_cast, dynamic_pointer_cast, const_pointer_cast, reinterpret_pointer_cast
  4. Converting to a type of a different size requires get_count, get_range, and get_offset to return different values than the original accessor
  5. Examples for all casts