Alternative design to D81580 with the following change in API
before: using Bool = Bitfield<bool, 0, 1>; after: using Bool = Bitfield::Element<bool, 0, 1>; // Testing a field before: if(Bool::testField(Storage)) after: if(Bitfield::test<Bool>(Storage)) // Getting a field before: auto Value = Bool::getField(Storage); after: auto Value = Bitfield::get<Bool>(Storage); // Setting a field before: Bool::setField(Storage, Value); after: Bitfield::set<Bool>(Storage, Value);
consistent