mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
ng_corpus_generator: restore use of boost::next()
libc++ checks for forward_iterator_tag in std::next(), which isn't provided by our (Boost-derived) ue2_graph iterators.
This commit is contained in:
parent
448ce8a496
commit
3e597e85ff
@ -53,6 +53,8 @@
|
||||
#include <sstream>
|
||||
#include <vector>
|
||||
|
||||
#include <boost/utility.hpp>
|
||||
|
||||
using namespace std;
|
||||
using namespace ue2;
|
||||
|
||||
@ -194,7 +196,7 @@ void findPaths(const NGHolder &g, CorpusProperties &cProps,
|
||||
// If we've got no further adjacent vertices, re-use p rather than
|
||||
// copying it for the next path.
|
||||
unique_ptr<VertexPath> new_path;
|
||||
if (std::next(ai) == ae) {
|
||||
if (boost::next(ai) == ae) {
|
||||
new_path = std::move(p);
|
||||
} else {
|
||||
new_path = make_unique<VertexPath>(*p);
|
||||
|
Loading…
x
Reference in New Issue
Block a user