Boost logo

Boost Users :

Subject: [Boost-users] unexpected behaviour of filtering_ostream
From: Ed Keith (e_d_k_at_[hidden])
Date: 2012-01-05 15:58:22


I have the following code: int main(int argc, char *argv[]) {     io::filtering_ostream out;     out.push(std::cout);     out << "this is a test" << endl;     out << std::cin.rdbuf(); } when I run it the string "this is a test" gets sent to cout, but input type into cin does not get echoed to cout. Can anyone clue my in as to why not?     -EdK   Ed Keith e_d_k_at_[hidden] Blog: edkeith.blogspot.com



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net