From fd73bd8d3cda1d9e1f76fe38caeb659002322206 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 5 Sep 2021 13:46:39 +0100 Subject: Fix const weirdness in flatmap --- icespider/core/flatMap.h | 5 ++--- icespider/fcgi/cgiRequestBase.h | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/icespider/core/flatMap.h b/icespider/core/flatMap.h index db07473..7eb6364 100644 --- a/icespider/core/flatMap.h +++ b/icespider/core/flatMap.h @@ -5,10 +5,9 @@ #include namespace IceSpider { - template> - class flatmap : std::vector, std::decay_t>> { + template> class flatmap : std::vector> { public: - using V = std::pair, std::decay_t>; + using V = std::pair; using S = std::vector; private: diff --git a/icespider/fcgi/cgiRequestBase.h b/icespider/fcgi/cgiRequestBase.h index de99e01..710b0f0 100644 --- a/icespider/fcgi/cgiRequestBase.h +++ b/icespider/fcgi/cgiRequestBase.h @@ -15,8 +15,8 @@ namespace IceSpider { void initialize(); public: - using VarMap = flatmap; - using HdrMap = flatmap; + using VarMap = flatmap; + using HdrMap = flatmap; [[nodiscard]] const PathElements & getRequestPath() const override; [[nodiscard]] PathElements & getRequestPath() override; -- cgit v1.2.3