qmmm/qmmm_interaction.cc: In member function 'void interaction::QMMM_Interaction::modify_exclusions(topology::Topology&, const simulation::Simulation&, std::ostream&, bool)':
qmmm/qmmm_interaction.cc:1001:41: error: no matching function for call to 'std::vector<topology::lj_exception_struct>::erase(std::vector<topology::lj_exception_struct>::const_iterator&)'
it = topo.lj_exceptions().erase(it);
^
qmmm/qmmm_interaction.cc:1001:41: note: candidates are:
In file included from /usr/include/c++/4.8.2/vector:69:0,
from ../../src/interaction/nonbonded/pairlist/../../../stdheader.h:16,
from qmmm/qmmm_interaction.cc:6:
/usr/include/c++/4.8.2/bits/vector.tcc:134:5: note: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(std::vector<_Tp, _Alloc>::iterator) [with _Tp = topology::lj_exception_struct; _Alloc = st
d::allocator<topology::lj_exception_struct>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<topology::lj_exception_struct*, std::vector<topology::lj_exception_struct> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = topology::lj_exception_struct*] vector<_Tp, _Alloc>::
^
/usr/include/c++/4.8.2/bits/vector.tcc:134:5: note: no known conversion for argument 1 from 'std::vector<topology::lj_exception_struct>::const_iterator {aka __gnu_cxx::__normal_iterator<const topology::lj_ex
ception_struct*, std::vector<topology::lj_exception_struct> >}' to 'std::vector<topology::lj_exception_struct>::iterator {aka __gnu_cxx::__normal_iterator<topology::lj_exception_struct*, std::vector<topology::lj_exception_struct> >}'/usr/include/c++/4.8.2/bits/vector.tcc:146:5: note: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(std::vector<_Tp, _Alloc>::iterator, std::vector<_Tp, _Alloc>::iterator) [with _Tp = topolo
gy::lj_exception_struct; _Alloc = std::allocator<topology::lj_exception_struct>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<topology::lj_exception_struct*, std::vector<topology::lj_exception_struct> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = topology::lj_exception_struct*] vector<_Tp, _Alloc>::
^
/usr/include/c++/4.8.2/bits/vector.tcc:146:5: note: candidate expects 2 arguments, 1 provided
make[3]: *** [qmmm/qmmm_interaction.lo] Error 1
make[3]: Leaving directory `/home/inno/md++-1.5.0/src/interaction'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/inno/md++-1.5.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/inno/md++-1.5.0'
make: *** [all] Error 2
求助c++问题,MD++程序make的时候出现报错
最新推荐文章于 2024-04-27 16:49:54 发布