Added scoped_rdbuf