mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-12-16 04:09:39 +00:00
Common/BitField: Silence two warnings:
warning: definition of implicit copy constructor for 'BitField<2, 2, ColorChannel>' is deprecated because it has a user-declared copy assignment operator [-Wdeprecated-copy] Redundant access specifier has the same accessibility as the previous access specifier.
This commit is contained in:
parent
e630b0692e
commit
9dea0859eb
@ -129,6 +129,9 @@ public:
|
|||||||
// so that we can use this within unions
|
// so that we can use this within unions
|
||||||
constexpr BitField() = default;
|
constexpr BitField() = default;
|
||||||
|
|
||||||
|
// Allow copy construction.
|
||||||
|
constexpr BitField(const BitField&) = default;
|
||||||
|
|
||||||
// We explicitly delete the copy assignment operator here, because the
|
// We explicitly delete the copy assignment 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.
|
||||||
@ -382,7 +385,6 @@ public:
|
|||||||
constexpr BitFieldArrayIterator(BitFieldArrayIterator&& other) = default;
|
constexpr BitFieldArrayIterator(BitFieldArrayIterator&& other) = default;
|
||||||
BitFieldArrayIterator& operator=(BitFieldArrayIterator&& other) = default;
|
BitFieldArrayIterator& operator=(BitFieldArrayIterator&& other) = default;
|
||||||
|
|
||||||
public:
|
|
||||||
BitFieldArrayIterator& operator++()
|
BitFieldArrayIterator& operator++()
|
||||||
{
|
{
|
||||||
m_index++;
|
m_index++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user