this->setBits(first, last, _data);
return _data;
}
+
+ uint64_t
+ operator=(Bitfield<first, last> const & other)
+ {
+ return *this = (uint64_t)other;
+ }
};
//A class which specializes the above so that it can only be read
private:
uint64_t
operator=(const uint64_t _data);
+
+ uint64_t
+ operator=(const Bitfield<first, last>& other);
};
//Similar to the above, but only allows writing.
this->setBits(first, last, _data);
return _data;
}
+
+ int64_t
+ operator=(SignedBitfield<first, last> const & other)
+ {
+ return *this = (int64_t)other;
+ }
};
//A class which specializes the above so that it can only be read
private:
int64_t
operator=(const int64_t _data);
+
+ int64_t
+ operator=(const SignedBitfield<first, last>& other);
};
//Similar to the above, but only allows writing.
operator const int64_t () const;
public:
- int64_t operator=(const int64_t _data)
- {
- *((SignedBitfield<first, last> *)this) = _data;
- return _data;
- }
+ using SignedBitfield<first, last>::operator=;
};
};
return _data;
}
+ Type
+ operator=(BitUnionOperators const & other)
+ {
+ Base::__data = other;
+ return Base::__data;
+ }
+
bool
operator<(Base const & base) const
{