mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
Fix Intellisense error spam on Visual Studio.
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.)
This commit is contained in:
parent
0b1d8fae1b
commit
3aa3002010
3 changed files with 18 additions and 13 deletions
|
@ -115,10 +115,14 @@ template<std::size_t position, std::size_t bits, typename T>
|
|||
struct BitField
|
||||
{
|
||||
private:
|
||||
#ifndef _WIN32
|
||||
// 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;
|
||||
#endif
|
||||
|
||||
public:
|
||||
// Force default constructor to be created
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue