#include #include #include #include "istream_iterator_date.h" #include "date.h" using namespace std; int main(int argc, char **argv) { ifstream ifs("/dev/null"); if (!ifs) { cerr << argv[0] << ": couldn't open /dev/null\n"; return EXIT_FAILURE; } istream_iterator_date it(ifs); const istream_iterator_date end; cout << boolalpha; cout << (it == end) << "\n"; date d = *it; cout << (it == end) << "\n"; return EXIT_SUCCESS; }