Fixed problem where GCC < 6 wouldn't compile Crow

This commit is contained in:
The-EDev 2022-03-30 15:50:11 +03:00
parent f52ba6120e
commit 5f18548369
No known key found for this signature in database
GPG Key ID: 51C45DC0C413DCD9
2 changed files with 6 additions and 3 deletions

View File

@ -16,13 +16,16 @@
#include <boost/algorithm/string/predicate.hpp>
#include <boost/operators.hpp>
#include <vector>
#include <math.h>
#include <cmath>
#include "crow/utility.h"
#include "crow/settings.h"
#include "crow/returnable.h"
#include "crow/logging.h"
using std::isinf;
using std::isnan;
namespace crow
{

View File

@ -775,7 +775,7 @@ namespace crow
if (pos == req_url.size())
{
found_BP = std::move(*blueprints);
return {node->rule_index, *blueprints, *params};
return std::tuple<uint16_t, std::vector<uint16_t>, routing_params>{node->rule_index, *blueprints, *params};
}
bool found_fragment = false;
@ -902,7 +902,7 @@ namespace crow
if (!found_fragment)
found_BP = std::move(*blueprints);
return {found, found_BP, match_params}; //Called after all the recursions have been done
return std::tuple<uint16_t, std::vector<uint16_t>, routing_params>{found, found_BP, match_params}; //Called after all the recursions have been done
}
//This functions assumes any blueprint info passed is valid