Compile fixes for GCC

This commit is contained in:
Connor McLaughlin
2019-10-22 23:07:51 +10:00
parent dc7b72b156
commit a76ec6fc19
19 changed files with 47 additions and 52 deletions

View File

@ -10,10 +10,8 @@
template<typename BackingDataType, typename DataType, unsigned BitIndex, unsigned BitCount>
struct BitField
{
constexpr BitField() = default;
#ifndef _MSC_VER
BitField& operator=(const BitField& value) = delete;
#endif
// We have to delete the copy assignment operator otherwise we can't use this class in anonymous structs/unions.
BitField& operator=(const BitField& rhs) = delete;
constexpr BackingDataType GetMask() const
{
@ -138,4 +136,4 @@ struct BitField
#ifdef _MSC_VER
#pragma warning(pop)
#endif
#endif