summarylogtreecommitdiffstats
path: root/zinnia-gcc6.patch
blob: 399fe9f8dff27b1e4af4cbff25622e17e3fa3d07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- a/trainer.cpp
+++ b/trainer.cpp
@@ -93,7 +93,7 @@ class TrainerImpl: public Trainer {
 
  public:
   bool add(const Character &character) {
-    const std::string y = character.value();
+    std::string y = character.value();
     CHECK_FALSE(!y.empty()) << "input character is empty";
     Features features;
     CHECK_FALSE(features.read(character)) << "cannot read character: " << y;
@@ -103,7 +103,7 @@ class TrainerImpl: public Trainer {
     if (!fn) {
       return false;
     }
-    x_.push_back(std::make_pair<std::string, FeatureNode *>(y, fn));
+    x_.push_back(std::make_pair(y, fn));
     return true;
   }