stream: move bit ostream operator into util namespace

This commit is contained in:
Danny Robson 2015-04-09 20:41:24 +10:00
parent 532dc415a4
commit 21e172c3db
2 changed files with 3 additions and 2 deletions

View File

@ -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;

View File

@ -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