I've been working on this for hours but I still can't get my methods to work no matter how many times I look over bitwise functions. (Switching it to just pos throws an error).
Bits() = default;
Bits(IType n) {
bits = n;
}
void set(int pos) {
(bits |= 1ULL << (pos-1));
}
void reset(int pos) { // Resets (makes zero) the bit at position pos
bits &= ~(1ULL << (pos-1));
}
This is what I get when I try to submit it For some reason it seems to be filling out the bit with the entire long.