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

Fix Intellisense error spam on Visual Studio. #1933

Merged
merged 1 commit into from Jan 25, 2015

Conversation

magumagu
Copy link
Contributor

Intellisense doesn't like defines in PCH files, and it doesn't like the deleted
constructor for BitField. (I think it's being overly strict about the
"must have no non-default constructors" rule for classes in unions.)

@delroth
Copy link
Member

delroth commented Jan 21, 2015

@neobrain care to review?

// This constructor might be considered ambiguous:
// Would it initialize the storage or just the bitfield?
// Hence, delete it. Use the assignment operator to set bitfield values!
// MSVC 2013 Intellisense doesn't like this declaration, so disable

This comment was marked as off-topic.

@neobrain
Copy link
Member

LGTM other than the comment I added. Deleting that constructor is indeed not critical and is just added to prevent accidental misuse of BitField.

@magumagu
Copy link
Contributor Author

Updated with improved comment.

// This constructor might be considered ambiguous:
// Would it initialize the storage or just the bitfield?
// Hence, delete it. Use the assignment operator to set bitfield values!
// MSVC 2013 Intellisense complains that this declaration isn't allowed
// in a union member, so disable it on Windows.
BitField(T val) = delete;

This comment was marked as off-topic.

This comment was marked as off-topic.

Intellisense doesn't like defines in PCH files, and it doesn't like the deleted
constructor for BitField.  (I think it's being overly strict about the
"must have no non-default constructors" rule for classes in unions.)
skidau added a commit that referenced this pull request Jan 25, 2015
Fix Intellisense error spam on Visual Studio.
@skidau skidau merged commit 0aef1d2 into dolphin-emu:master Jan 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants