[pstreams-devel] [ pstreams-Bugs-1754057 ] Example in Documents
Brought to you by:
redi
From: SourceForge.net <no...@so...> - 2007-07-14 18:10:45
|
Bugs item #1754057, was opened at 2007-07-14 11:10 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=453892&aid=1754057&group_id=48695 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Example in Documents Initial Comment: In the documents, this in this exmaple: 1 // remove some files, capturing any error messages 2 std::vector<std::string> argv; 3 std::vector<std::string> errors; 4 argv.push_back("rm"); 5 argv.push_back("-rf"); 6 argv.push_back("./foo.txt"); 7 argv.push_back("./bar.html"); 8 argv.push_back("./fnord/"); 9 redi::ipstream in("rm", argv, pstreambuf::pstderr); 10 std::string errmsg; 11 while (std::getline(in, errmsg)) { 12 errors.push_back(errmsg); 13 } Line number 9 should be: redi::ipstream in("rm", argv, redi::pstreambuf::pstderr); Regards, Brian Ray (br...@se...) http://kazavoo.com ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=453892&aid=1754057&group_id=48695 |