summaryrefslogtreecommitdiff
path: root/crow/include/crow/routing.h
diff options
context:
space:
mode:
Diffstat (limited to 'crow/include/crow/routing.h')
-rw-r--r--crow/include/crow/routing.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/crow/include/crow/routing.h b/crow/include/crow/routing.h
index d07f09f625..f1f3b32ce3 100644
--- a/crow/include/crow/routing.h
+++ b/crow/include/crow/routing.h
@@ -4,10 +4,11 @@
#include <cstdint>
#include <memory>
#include <tuple>
-#include <unordered_map>
#include <utility>
#include <vector>
+#include "boost/container/flat_map.hpp"
+
#include "crow/common.h"
#include "crow/http_request.h"
#include "crow/http_response.h"
@@ -502,7 +503,7 @@ class Trie {
struct Node {
unsigned rule_index{};
std::array<unsigned, (int)ParamType::MAX> param_childrens{};
- std::unordered_map<std::string, unsigned> children;
+ boost::container::flat_map<std::string, unsigned> children;
bool IsSimpleNode() const {
return !rule_index &&