summaryrefslogtreecommitdiff
path: root/decoder/hg.h
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-31 01:56:56 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-08-31 01:56:56 +0000
commitd8fa7f3e9b8127911996c36f477bcae3831f7708 (patch)
treea217daf9c2f7ad02bdc0b2e17e258754b19eec30 /decoder/hg.h
parent2af5a445f3905c69c42be5c758c52a2f21b17446 (diff)
l2r bugfixes
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@635 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/hg.h')
-rw-r--r--decoder/hg.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/decoder/hg.h b/decoder/hg.h
index 76b2b8f0..a78746b0 100644
--- a/decoder/hg.h
+++ b/decoder/hg.h
@@ -298,6 +298,9 @@ public:
std::swap(is_linear_chain_, other.is_linear_chain_);
other.edges_.swap(edges_);
}
+ friend inline void swap(Hypergraph &a,Hypergraph &b) {
+ a.swap(b);
+ }
void ResizeNodes(int size) {
nodes_.resize(size);