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

BitField fixes #483

Merged
merged 3 commits into from Jun 13, 2014
Merged

BitField fixes #483

merged 3 commits into from Jun 13, 2014

Conversation

neobrain
Copy link
Member

Fixing* a fairly dangerous API oddity pointed out by @kayru, as well as some warnings (of which I'm not sure if they were new or only introduced by the previous fix), and added a small getter value for convenience (.. not really useful for anything Dolphin does currently, but it has proven to be very useful for Citra).

(*) "Fixing" = abuse gcc and clang to error out compilation if a copy assignment operator is used with BitField, because MSVC doesn't support unrestricted unions, which are necessary to implement sane copy assignment.

… value.

Sometimes (in particular when using non-typesafe functions) it can be convenient to have a getter method rather than performing a potentially lengthy explicit cast.
@neobrain neobrain changed the title Bitfield fixes BitField fixes Jun 11, 2014
@kayru
Copy link
Contributor

kayru commented Jun 11, 2014

Looks good!

neobrain added a commit that referenced this pull request Jun 13, 2014
@neobrain neobrain merged commit 0bc6b49 into dolphin-emu:master Jun 13, 2014
neobrain added a commit to neobrain/citra that referenced this pull request Jul 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants