summaryrefslogtreecommitdiff
path: root/http/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'http/common.h')
-rw-r--r--http/common.h17
1 files changed, 11 insertions, 6 deletions
diff --git a/http/common.h b/http/common.h
index 77c2074013..47df7e63c7 100644
--- a/http/common.h
+++ b/http/common.h
@@ -1,13 +1,14 @@
#pragma once
+#include "utility.h"
+
#include <boost/beast/http/verb.hpp>
+
#include <iostream>
#include <stdexcept>
#include <string>
#include <vector>
-#include "utility.h"
-
namespace crow
{
@@ -81,20 +82,24 @@ struct RoutingParams
std::cerr << std::endl;
}
- template <typename T> T get(unsigned) const;
+ template <typename T>
+ T get(unsigned) const;
};
-template <> inline int64_t RoutingParams::get<int64_t>(unsigned index) const
+template <>
+inline int64_t RoutingParams::get<int64_t>(unsigned index) const
{
return intParams[index];
}
-template <> inline uint64_t RoutingParams::get<uint64_t>(unsigned index) const
+template <>
+inline uint64_t RoutingParams::get<uint64_t>(unsigned index) const
{
return uintParams[index];
}
-template <> inline double RoutingParams::get<double>(unsigned index) const
+template <>
+inline double RoutingParams::get<double>(unsigned index) const
{
return doubleParams[index];
}