diff options
author | antoine <antoine@FreeBSD.org> | 2018-01-21 18:08:40 +0800 |
---|---|---|
committer | antoine <antoine@FreeBSD.org> | 2018-01-21 18:08:40 +0800 |
commit | b7a4c39daf3f495a31eb7bf9ae680b4b9ca74684 (patch) | |
tree | a1c50ba1e6e89dc39e4354c0316ba3cad6cbe95e /japanese | |
parent | 329ba903a1f35b5e621f5124cf192040c2312e59 (diff) | |
download | freebsd-ports-gnome-b7a4c39daf3f495a31eb7bf9ae680b4b9ca74684.tar.gz freebsd-ports-gnome-b7a4c39daf3f495a31eb7bf9ae680b4b9ca74684.tar.zst freebsd-ports-gnome-b7a4c39daf3f495a31eb7bf9ae680b4b9ca74684.zip |
Fix build with clang 6
trainer.cpp:106:18: error: no matching function for call to 'make_pair'
x_.push_back(std::make_pair<std::string, FeatureNode *>(y, fn));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
PR: 224669
Reported by: pkg-fallout
Diffstat (limited to 'japanese')
-rw-r--r-- | japanese/zinnia/files/patch-trainer.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/japanese/zinnia/files/patch-trainer.cpp b/japanese/zinnia/files/patch-trainer.cpp new file mode 100644 index 000000000000..982e03df81d9 --- /dev/null +++ b/japanese/zinnia/files/patch-trainer.cpp @@ -0,0 +1,20 @@ +--- trainer.cpp.orig 2010-05-09 05:34:08 UTC ++++ 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; + } + |