Copy constructor and equality operations added.

This commit is contained in:
Adrian Conlon
2021-12-27 22:07:30 +00:00
parent 945fcefb36
commit 1f5dc54c40
13 changed files with 95 additions and 13 deletions
+4
View File
@@ -3,6 +3,10 @@
DEFINE_PIN_LEVEL_CHANGERS(POWER, Device);
EightBit::Device::Device(const Device& rhs) {
POWER() = rhs.POWER();
}
bool EightBit::Device::operator==(const EightBit::Device& rhs) const {
return POWER() == rhs.POWER();
}