Add size-defining constructors for BitArray.

develop
Alexander Gavrilov 2012-02-12 17:44:19 +04:00
parent c04a140713
commit 1047c2517d
2 changed files with 8 additions and 1 deletions

@ -46,6 +46,13 @@ namespace DFHack
free(bits); free(bits);
} }
explicit BitArray(T last) : bits(NULL), size(0) {
extend(last);
}
explicit BitArray(unsigned last) : bits(NULL), size(0) {
extend(T(last));
}
void clear_all ( void ) void clear_all ( void )
{ {
if(bits) if(bits)

@ -1 +1 @@
Subproject commit 2444f376e32783c9f7a7bf103b209e256e64ed80 Subproject commit 7fcdca71787d7e998cec2f771999e722609093f1