Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Casting accessors #98

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ProGTX
Copy link
Contributor

@ProGTX ProGTX commented Sep 21, 2019

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

@ProGTX ProGTX force-pushed the ProGTX/accessor-cast branch 2 times, most recently from a39ac72 to ad47d5e Compare September 22, 2019 12:46
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
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.

1 participant