summaryrefslogtreecommitdiffstats
path: root/vdslib
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2016-11-18 01:24:38 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2016-11-18 01:24:38 +0000
commita8e2fddd58166bcddaf9fb0977c32f8ac4b1d367 (patch)
tree5a42055e47237621d6235b5e8e7166cc29e8aa6d /vdslib
parent73089e264673c8b0665bb158b16066637016efd9 (diff)
vdslib builds fine again.
Diffstat (limited to 'vdslib')
-rw-r--r--vdslib/src/vespa/vdslib/state/nodetype.cpp8
-rw-r--r--vdslib/src/vespa/vdslib/state/nodetype.h8
2 files changed, 12 insertions, 4 deletions
diff --git a/vdslib/src/vespa/vdslib/state/nodetype.cpp b/vdslib/src/vespa/vdslib/state/nodetype.cpp
index e12c1e00714..4a09fea8213 100644
--- a/vdslib/src/vespa/vdslib/state/nodetype.cpp
+++ b/vdslib/src/vespa/vdslib/state/nodetype.cpp
@@ -32,5 +32,13 @@ NodeType::NodeType(const vespalib::stringref & name, uint16_t enumValue)
{
}
+std::ostream & operator << (std::ostream & os, const NodeType & n) {
+ return os << n.toString();
+}
+
+vespalib::asciistream & operator << (vespalib::asciistream & os, const NodeType & n) {
+ return os << n.toString();
+}
+
} // lib
} // storage
diff --git a/vdslib/src/vespa/vdslib/state/nodetype.h b/vdslib/src/vespa/vdslib/state/nodetype.h
index d2082a35867..8bb96f47743 100644
--- a/vdslib/src/vespa/vdslib/state/nodetype.h
+++ b/vdslib/src/vespa/vdslib/state/nodetype.h
@@ -11,6 +11,7 @@
#include <vespa/vespalib/stllike/asciistream.h>
#include <stdint.h>
+#include <ostream>
namespace storage {
namespace lib {
@@ -33,10 +34,6 @@ public:
operator uint16_t() const { return _enumValue; }
const vespalib::string & toString() const { return _name; }
- friend asciistream & operator << (asciistream & os, const NodeType & n) {
- return os << n.toString();
- }
-
bool operator==(const NodeType& other) const { return (&other == this); }
bool operator!=(const NodeType& other) const { return (&other != this); }
@@ -45,6 +42,9 @@ public:
}
};
+std::ostream & operator << (std::ostream & os, const NodeType & n);
+vespalib::asciistream & operator << (vespalib::asciistream & os, const NodeType & n);
+
} // lib
} // storage