#include #include #include #include #include /* * Expected Output: * fis.good(): 1 * fis.tellg(): 0 * fis.good(): 1 * * Received Output: * fis.good(): 1 * fis.tellg(): -1 * fis.good(): 0 */ int main() { std::string test("Hello world"); boost::iostreams::filtering_istream fis; fis.push(boost::make_iterator_range(test)); std::cerr << "fis.good(): " << fis.good() << std::endl; std::cerr << "fis.tellg(): " << fis.tellg() << std::endl; std::cerr << "fis.good(): " << fis.good() << std::endl; return 0; }