diff options
author | John Langford <jl@hunch.net> | 2011-09-02 02:22:03 +0400 |
---|---|---|
committer | John Langford <jl@hunch.net> | 2011-09-02 02:22:03 +0400 |
commit | 39d06935f61832b4dc38706bdd59515138b02deb (patch) | |
tree | 4fb9d83072a1570a6f273fd9c1656ca13decc5a6 /io.h | |
parent | 1608d6628b1f1cdcf491d16d8a964a21ecf2f436 (diff) |
add -std=c++0x and deal with all kinds of type and namespace issues
Diffstat (limited to 'io.h')
-rw-r--r-- | io.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -15,8 +15,6 @@ embodied in the content of this file are licensed under the BSD #define O_LARGEFILE 0 #endif -using namespace std; - class io_buf { public: v_array<char> space; //space.begin = beginning of loaded values. space.end = end of read or written values. @@ -54,7 +52,7 @@ class io_buf { break; default: - cerr << "Unknown file operation. Something other than READ/WRITE specified" << endl; + std::cerr << "Unknown file operation. Something other than READ/WRITE specified" << std::endl; ret = -1; } return ret; @@ -104,7 +102,7 @@ class io_buf { virtual void flush() { if (write_file(files[0], space.begin, space.index()) != (int) space.index()) - cerr << "error, failed to write example\n"; + std::cerr << "error, failed to write example\n"; space.end = space.begin; fsync(files[0]); } virtual bool close_file(){ |