From b0332011bb2663fc74bdae99c1c3e48862292fcc Mon Sep 17 00:00:00 2001 From: Magic-Xin Date: Tue, 19 Sep 2023 06:02:14 +0800 Subject: [PATCH] Updated to C++17 standard --- src/mecab/src/dictionary.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mecab/src/dictionary.cpp b/src/mecab/src/dictionary.cpp index cd98ef0..1df0eba 100644 --- a/src/mecab/src/dictionary.cpp +++ b/src/mecab/src/dictionary.cpp @@ -65,9 +65,9 @@ int progress_bar_darts(size_t current, size_t total) { } template -struct pair_1st_cmp: public std::__binary_function { +struct pair_1st_cmp { bool operator()(const std::pair &x1, - const std::pair &x2) { + const std::pair &x2) const { return x1.first < x2.first; } };