NVDRV: Refactor and add new NvMap.

This commit is contained in:
Fernando Sahmkow
2021-11-01 18:53:32 +01:00
parent a21b8824fb
commit 3cbe352c18
20 changed files with 558 additions and 45 deletions

View File

@ -127,11 +127,14 @@ public:
}
}
// This constructor and assignment operator might be considered ambiguous:
// Would they initialize the storage or just the bitfield?
// Hence, delete them. Use the Assign method to set bitfield values!
BitField(T val) = delete;
BitField& operator=(T val) = delete;
BitField(T val) {
Assign(val);
}
BitField& operator=(T val) {
Assign(val);
return *this;
}
constexpr BitField() noexcept = default;