summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2015-09-30 04:13:09 +0200
committerLioncash <mathew1800@gmail.com>2015-10-01 21:43:42 +0200
commit845ac621b3adf0b3f98522a6ecfa7301ad276c9c (patch)
tree5aba2d7e78dc44fa1eaa966fa170d1754a186fc1 /src
parentMerge pull request #1172 from martinlindhe/fix-warnings (diff)
downloadyuzu-845ac621b3adf0b3f98522a6ecfa7301ad276c9c.tar
yuzu-845ac621b3adf0b3f98522a6ecfa7301ad276c9c.tar.gz
yuzu-845ac621b3adf0b3f98522a6ecfa7301ad276c9c.tar.bz2
yuzu-845ac621b3adf0b3f98522a6ecfa7301ad276c9c.tar.lz
yuzu-845ac621b3adf0b3f98522a6ecfa7301ad276c9c.tar.xz
yuzu-845ac621b3adf0b3f98522a6ecfa7301ad276c9c.tar.zst
yuzu-845ac621b3adf0b3f98522a6ecfa7301ad276c9c.zip
Diffstat (limited to 'src')
-rw-r--r--src/common/bit_field.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/common/bit_field.h b/src/common/bit_field.h
index d306ce9a9..66689f398 100644
--- a/src/common/bit_field.h
+++ b/src/common/bit_field.h
@@ -125,21 +125,10 @@ public:
// so that we can use this within unions
BitField() = default;
-#ifndef _WIN32
// We explicitly delete the copy assigment operator here, because the
// default copy assignment would copy the full storage value, rather than
// just the bits relevant to this particular bit field.
- // Ideally, we would just implement the copy assignment to copy only the
- // relevant bits, but this requires compiler support for unrestricted
- // unions.
- // MSVC 2013 has no support for this, hence we disable this code on
- // Windows (so that the default copy assignment operator will be used).
- // For any C++11 conformant compiler we delete the operator to make sure
- // we never use this inappropriate operator to begin with.
- // TODO: Implement this operator properly once all target compilers
- // support unrestricted unions.
BitField& operator=(const BitField&) = delete;
-#endif
FORCE_INLINE BitField& operator=(T val)
{