Skip to content

Commit

Permalink
Merge pull request #377 from CrowCpp/hotfix_compiler
Browse files Browse the repository at this point in the history
Fixed problem where GCC < 6 wouldn't compile Crow
  • Loading branch information
The-EDev authored Mar 30, 2022
2 parents f52ba61 + 5f18548 commit 1e73642
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion include/crow/json.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
4 changes: 2 additions & 2 deletions include/crow/routing.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 1e73642

Please sign in to comment.