mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
[CPP] Update C++ standard to C++17 (#2308)
* Update C++ standard to C++17 * Nuke EQ::Any in favor of std::any * Remove std::iterator due to deprecation * Replace result_of with invoke_result due to deprecation
This commit is contained in:
committed by
GitHub
parent
f4f5728195
commit
5331f4d841
+4
-4
@@ -40,14 +40,14 @@ void CullPoints(std::vector<FindPerson_Point> &points) {
|
||||
}
|
||||
|
||||
void Client::SendPathPacket(const std::vector<FindPerson_Point> &points) {
|
||||
EQ::Any data(points);
|
||||
std::any data(points);
|
||||
EQ::Task([=](EQ::Task::ResolveFn resolve, EQ::Task::RejectFn reject) {
|
||||
auto points = EQ::any_cast<std::vector<FindPerson_Point>>(data);
|
||||
auto points = std::any_cast<std::vector<FindPerson_Point>>(data);
|
||||
CullPoints(points);
|
||||
resolve(points);
|
||||
})
|
||||
.Then([this](const EQ::Any &result) {
|
||||
auto points = EQ::any_cast<std::vector<FindPerson_Point>>(result);
|
||||
.Then([this](const std::any &result) {
|
||||
auto points = std::any_cast<std::vector<FindPerson_Point>>(result);
|
||||
if (points.size() < 2) {
|
||||
if (Admin() > AccountStatus::Steward) {
|
||||
Message(Chat::System, "Too few points");
|
||||
|
||||
Reference in New Issue
Block a user