You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-4327 dev Add std:: qualifier to distance()
In Ubuntu 20.04, it appears that unqualified, distance() is found in both std:: and boost::
This commit is contained in:
@ -25,7 +25,6 @@
|
|||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
#include <boost/shared_ptr.hpp>
|
#include <boost/shared_ptr.hpp>
|
||||||
using namespace boost;
|
|
||||||
|
|
||||||
#include "loggingid.h"
|
#include "loggingid.h"
|
||||||
#include "errorcodes.h"
|
#include "errorcodes.h"
|
||||||
@ -272,8 +271,8 @@ void WindowFunction::sort(std::vector<RowPosition>::iterator v, uint64_t n)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sort(v, distance(v, h) + 1);
|
sort(v, std::distance(v, h) + 1);
|
||||||
sort(l, distance(l, v) + n);
|
sort(l, std::distance(l, v) + n);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user