NVDRV: Refactor and add new NvMap.

This commit is contained in:
Fernando Sahmkow 2021-11-01 18:53:32 +01:00
parent 2821dbf166
commit 3991518f74
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;