summaryrefslogtreecommitdiff
path: root/klm/search
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2013-01-09 20:16:45 +0000
committerKenneth Heafield <github@kheafield.com>2013-01-09 20:17:40 +0000
commita52035d1bce0566bfd9603d93e4fb601bf25a73f (patch)
tree400cc593b92059ee37d6c276eb9c2a4f4ab5bc0d /klm/search
parentabb935570a86c6c21c5bb3a95e07763247bd4963 (diff)
Old Boost #include also type qualifier
Diffstat (limited to 'klm/search')
-rw-r--r--klm/search/vertex.hh6
-rw-r--r--klm/search/vertex_generator.hh1
2 files changed, 4 insertions, 3 deletions
diff --git a/klm/search/vertex.hh b/klm/search/vertex.hh
index 10b3339b..ca9a4fcd 100644
--- a/klm/search/vertex.hh
+++ b/klm/search/vertex.hh
@@ -65,7 +65,7 @@ class VertexNode {
}
// Will be invalid unless this is a leaf.
- const History End() const { return end_; }
+ History End() const { return end_; }
const VertexNode &operator[](size_t index) const {
return *extend_[index];
@@ -124,7 +124,7 @@ class PartialVertex {
return ret;
}
- const History End() const {
+ History End() const {
return back_->End();
}
@@ -141,7 +141,7 @@ class Vertex {
PartialVertex RootPartial() const { return PartialVertex(root_); }
- const History BestChild() const {
+ History BestChild() const {
PartialVertex top(RootPartial());
if (top.Empty()) {
return History();
diff --git a/klm/search/vertex_generator.hh b/klm/search/vertex_generator.hh
index da563c2d..646b8189 100644
--- a/klm/search/vertex_generator.hh
+++ b/klm/search/vertex_generator.hh
@@ -4,6 +4,7 @@
#include "search/edge.hh"
#include "search/types.hh"
#include "search/vertex.hh"
+#include "util/exception.hh"
#include <boost/unordered_map.hpp>
#include <boost/version.hpp>