Alright cool, but even with streambuf's constructor being protected, its still better to use << for binary? Which I'm assuming formats also..Originally Posted by Prelude
Streambuf works well, and VC++ no longer complains now that you corrected my mistake.. but it is a lot more code than <<, but I could make a function (or operator overload) for it if its a better method for binary than inserters.