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

Basic operations for translation-aware types #1866

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

Conversation

jfalcou
Copy link
Owner

@jfalcou jfalcou commented Jun 26, 2024

No description provided.

//! @brief Implicit conversion to the architecture-specific storage help by wide
EVE_FORCEINLINE operator storage_type const& () const & noexcept { return data_; }
//! Implicit conversion to the architecture-specific storage help by wide
EVE_FORCEINLINE explicit(PreventConversion) operator storage_type const& () const & noexcept { return data_; }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we prevernting conversion here? what's the usecase?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a emnant from when we thought enum shoudl not have any operator, this was preventing unwanted convertion. This should go as we changed this.

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.

None yet

3 participants