Skip to content

Commit

Permalink
Updated to C++17 standard
Browse files Browse the repository at this point in the history
  • Loading branch information
Magic-Xin committed Sep 18, 2023
1 parent dbb7b3d commit b033201
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mecab/src/dictionary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ int progress_bar_darts(size_t current, size_t total) {
}

template <typename T1, typename T2>
struct pair_1st_cmp: public std::__binary_function<bool, T1, T2> {
struct pair_1st_cmp {
bool operator()(const std::pair<T1, T2> &x1,
const std::pair<T1, T2> &x2) {
const std::pair<T1, T2> &x2) const {
return x1.first < x2.first;
}
};
Expand Down

0 comments on commit b033201

Please sign in to comment.