stream: move bit ostream operator into util namespace
This commit is contained in:
parent
532dc415a4
commit
21e172c3db
@ -53,7 +53,7 @@ bits::bits (uintmax_t _value, unsigned _count):
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
std::ostream&
|
||||
operator<< (std::ostream &os, util::stream::bits b) {
|
||||
util::stream::operator<< (std::ostream &os, util::stream::bits b) {
|
||||
char digits[sizeof (b.value) * 8 + 1] = { 0 };
|
||||
char *cursor = std::end (digits) - 1;
|
||||
|
||||
|
@ -52,9 +52,10 @@ namespace util {
|
||||
uintmax_t value;
|
||||
unsigned count;
|
||||
};
|
||||
|
||||
std::ostream& operator<< (std::ostream&, bits);
|
||||
}
|
||||
}
|
||||
|
||||
std::ostream& operator<< (std::ostream&, util::stream::bits);
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user