Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/io.h
diff options
context:
space:
mode:
authorJohn Langford <jl@hunch.net>2011-09-02 02:22:03 +0400
committerJohn Langford <jl@hunch.net>2011-09-02 02:22:03 +0400
commit39d06935f61832b4dc38706bdd59515138b02deb (patch)
tree4fb9d83072a1570a6f273fd9c1656ca13decc5a6 /io.h
parent1608d6628b1f1cdcf491d16d8a964a21ecf2f436 (diff)
add -std=c++0x and deal with all kinds of type and namespace issues
Diffstat (limited to 'io.h')
-rw-r--r--io.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/io.h b/io.h
index ca68d255..fc568039 100644
--- a/io.h
+++ b/io.h
@@ -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(){