summaryrefslogtreecommitdiff
path: root/mteval
diff options
context:
space:
mode:
authorPatrick Simianer <simianer@cl.uni-heidelberg.de>2012-05-31 13:57:24 +0200
committerPatrick Simianer <simianer@cl.uni-heidelberg.de>2012-05-31 13:57:24 +0200
commit6f6601111710aa67eee5169e5b7d89102cc33bb8 (patch)
tree0872544abd6bc76162f3f80eb3920999afbf2c34 /mteval
parent8cee8b565a9c56a7732365e9563f52ff3c4ff7fd (diff)
parent090a64e73f94a6a35e5364a9d416dcf75c0a2938 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'mteval')
-rw-r--r--mteval/ns.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/mteval/ns.h b/mteval/ns.h
index 4e4c6975..ac7b0a23 100644
--- a/mteval/ns.h
+++ b/mteval/ns.h
@@ -56,6 +56,11 @@ class SufficientStats {
}
void Encode(std::string* out) const;
+ void swap(SufficientStats& other) {
+ id_.swap(other.id_);
+ fields.swap(other.fields);
+ }
+
std::string id_;
std::vector<float> fields;
};