// $Id$
//
// Copyright (C) 2006
-// Fraunhofer Institute for Open Communication Systems (FOKUS)
-// Competence Center NETwork research (NET), St. Augustin, GERMANY
+// Fraunhofer Institute for Open Communication Systems (FOKUS)
+// Competence Center NETwork research (NET), St. Augustin, GERMANY
// Stefan Bund <g0dil@berlios.de>
//
// This program is free software; you can redistribute it and/or modify
value_type value() const { return i()[Bit/8] & (1<<(7-(Bit%8))); }
void value(value_type v) {
- if (v) i()[0] |= 1<<(7-(Bit%8));
- else i()[0] &= ~(1<<(7-(Bit%8)));
+ if (v) i()[Bit/8] |= 1<<(7-(Bit%8));
+ else i()[Bit/8] &= ~(1<<(7-(Bit%8)));
}
FlagParser const & operator= (value_type other) { value(other); return *this; }
};