0

我正在尝试为 ParsCit 安装 CRFPP V0.51。但是我遇到了文件 feature_index.cpp 的错误。如何修复 Rvalue/Lvalue 的错误?

feature_index.cpp:174:60: error: cannot bind rvalue reference of type 'int&&' to lvalue of type 'int'
  174 |         old2new.insert(std::make_pair<int, int>(it->second.first, new_maxid));
      |                                                 ~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
                 from /usr/include/c++/9/bits/char_traits.h:39,
                 from /usr/include/c++/9/ios:40,
                 from /usr/include/c++/9/ostream:38,
                 from /usr/include/c++/9/iostream:39,
                 from feature_index.cpp:8:
4

0 回答 0