::list<Element> fullList;
foo.removeDuplicates(fullList);我在创建searchIter时遇到了一个编译错误= incList.rend() && uniqueElement; ++searchIter) {
In file included from /usr/local/include/c++/6.1.0/bits/stl_a
不幸的是,尝试这样做会导致编译错误,如下面的代码示例所示。我怎么才能让它工作呢?如果有必要,使用Boost的解决方案会更好。auto r = make_reverse_iterator(i); *r;}
以下是g++-4.8.1报告的编译错误In file included from /opt/local/include/gcc48/c++/bits/stl_a