util: make bit array and allocator copyable

Ref #2091
This commit is contained in:
Stefan Kalkowski
2017-06-01 11:31:15 +02:00
committed by Christian Helmuth
parent 500893e7ec
commit 3906568908
2 changed files with 3 additions and 0 deletions

View File

@ -149,6 +149,8 @@ class Genode::Bit_array : public Bit_array_base
public:
Bit_array() : Bit_array_base(BITS, _array, true) { }
Bit_array(const Bit_array & o) : Bit_array_base(BITS, _array, false) {
memcpy(&_array, &o._array, sizeof(_array)); }
};
#endif /* _INCLUDE__UTIL__BIT_ARRAY_H_ */