1 #include <ostream> 2 #include <netinet/in.h> 3 4 class ClassA : public std::basic_streambuf<char, std::char_traits<char> >, public std::ostream 5 { 6 public: 7 ClassA(const uint32_t foo); 8 }; 9 10 ClassA::ClassA(const uint32_t foo) : std::ostream(this) 11 { 12 uint32_t be = htonl(foo); 13 } 14