I am writing a plugin in C++ that uses C API that gives me a single logging function with this signature: typedef void(*println_t)(const char* text); I want to wrap this type of a function in a nice ostream to use all C++ formatting features. Having read it is best to use streambuf for this, IRead more