mirror of
https://github.com/yuzu-emu/yuzu-mainline
synced 2024-11-24 09:28:32 +00:00
bit_field: Re-enable code on MSVC
This commit is contained in:
parent
a67df5ad94
commit
845ac621b3
1 changed files with 0 additions and 11 deletions
|
@ -125,21 +125,10 @@ public:
|
||||||
// so that we can use this within unions
|
// so that we can use this within unions
|
||||||
BitField() = default;
|
BitField() = default;
|
||||||
|
|
||||||
#ifndef _WIN32
|
|
||||||
// We explicitly delete the copy assigment operator here, because the
|
// We explicitly delete the copy assigment operator here, because the
|
||||||
// default copy assignment would copy the full storage value, rather than
|
// default copy assignment would copy the full storage value, rather than
|
||||||
// just the bits relevant to this particular bit field.
|
// 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;
|
BitField& operator=(const BitField&) = delete;
|
||||||
#endif
|
|
||||||
|
|
||||||
FORCE_INLINE BitField& operator=(T val)
|
FORCE_INLINE BitField& operator=(T val)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue